delete-repo-api.asciidoc 1.4 KB

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