delete-repo-api.asciidoc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. `master_timeout`::
  43. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  44. a connection to the master node. If no response is received before the timeout
  45. expires, the request fails and returns an error. Defaults to `30s`.
  46. `timeout`::
  47. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  48. a response. If no response is received before the timeout expires, the request
  49. fails and returns an error. Defaults to `30s`.