delete-repo-api.asciidoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [[delete-snapshot-repo-api]]
  2. === Delete snapshot repository API
  3. ++++
  4. <titleabbrev>Delete snapshot repository</titleabbrev>
  5. ++++
  6. Unregisters one or more <<snapshots-register-repository,snapshot repositories>>.
  7. When a repository is unregistered, {es} only removes the reference to the
  8. location where the repository is storing the snapshots. The snapshots themselves
  9. are left untouched and in place.
  10. ////
  11. [source,console]
  12. ----
  13. PUT /_snapshot/my_repository
  14. {
  15. "type": "fs",
  16. "settings": {
  17. "location": "my_backup_location"
  18. }
  19. }
  20. ----
  21. ////
  22. [source,console]
  23. ----
  24. DELETE /_snapshot/my_repository
  25. ----
  26. // TEST[continued]
  27. [[delete-snapshot-repo-api-request]]
  28. ==== {api-request-title}
  29. `DELETE /_snapshot/<repository>`
  30. [[delete-snapshot-repo-api-prereqs]]
  31. ==== {api-prereq-title}
  32. * If the {es} {security-features} are enabled, you must have the `manage`
  33. <<privileges-list-cluster,cluster privilege>> to use this API.
  34. [[delete-snapshot-repo-api-path-params]]
  35. ==== {api-path-parms-title}
  36. `<repository>`::
  37. (Required, string)
  38. Name of the snapshot repository to unregister. Wildcard (`*`) patterns are
  39. supported.
  40. [[delete-snapshot-repo-api-query-params]]
  41. ==== {api-query-parms-title}
  42. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]