delete-repo-api.asciidoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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-path-params]]
  31. ==== {api-path-parms-title}
  32. `<repository>`::
  33. (Required, string)
  34. Name of the snapshot repository to unregister. Wildcard (`*`) patterns are
  35. supported.
  36. [[delete-snapshot-repo-api-query-params]]
  37. ==== {api-query-parms-title}
  38. `master_timeout`::
  39. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  40. a connection to the master node. If no response is received before the timeout
  41. expires, the request fails and returns an error. Defaults to `30s`.
  42. `timeout`::
  43. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  44. a response. If no response is received before the timeout expires, the request
  45. fails and returns an error. Defaults to `30s`.