dangling-index-delete.asciidoc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [[dangling-index-delete]]
  2. === Delete dangling index API
  3. ++++
  4. <titleabbrev>Delete dangling index</titleabbrev>
  5. ++++
  6. Deletes a dangling index.
  7. [[dangling-index-delete-api-request]]
  8. ==== {api-request-title}
  9. [source,console]
  10. --------------------------------------------------
  11. DELETE /_dangling/<index-uuid>?accept_data_loss=true
  12. --------------------------------------------------
  13. // TEST[skip:Difficult to set up]
  14. [[dangling-index-delete-api-desc]]
  15. ==== {api-description-title}
  16. include::{es-repo-dir}/indices/dangling-indices-list.asciidoc[tag=dangling-index-description]
  17. Deletes a dangling index by referencing its UUID. Use the
  18. <<dangling-indices-list,List dangling indices API>> to locate the UUID of an index.
  19. [[dangling-index-delete-api-path-params]]
  20. ==== {api-path-parms-title}
  21. `<index-uuid>`::
  22. (Required, string)
  23. UUID of the index to delete. You can find this using the
  24. <<dangling-indices-list,List dangling indices API>>.
  25. [[dangling-index-delete-api-query-params]]
  26. ==== {api-query-parms-title}
  27. `accept_data_loss`::
  28. (Optional, Boolean)
  29. This field must be set to `true` in order to carry out the import, since it will
  30. no longer be possible to recover the data from the dangling index.
  31. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]