delete-index.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [[indices-delete-index]]
  2. === Delete index API
  3. ++++
  4. <titleabbrev>Delete index</titleabbrev>
  5. ++++
  6. Deletes an existing index.
  7. [source,console]
  8. --------------------------------------------------
  9. DELETE /twitter
  10. --------------------------------------------------
  11. // TEST[setup:twitter]
  12. [[delete-index-api-request]]
  13. ==== {api-request-title}
  14. `DELETE /<index>`
  15. [[delete-index-api-path-params]]
  16. ==== {api-path-parms-title}
  17. `<index>`::
  18. +
  19. --
  20. (Request, string) Comma-separated list or wildcard expression of indices to
  21. delete.
  22. In this parameter, wildcard expressions match only open, concrete indices. You
  23. cannot delete an index using an <<indices-aliases,alias>>.
  24. To delete all indices, use `_all` or `*` . To disallow the deletion of indices
  25. with `_all` or wildcard expressions, change the
  26. `action.destructive_requires_name` cluster setting to `true`. You can update
  27. this setting in the `elasticsearch.yml` file or using the
  28. <<cluster-update-settings,cluster update settings>> API.
  29. --
  30. [[delete-index-api-query-params]]
  31. ==== {api-query-parms-title}
  32. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
  33. +
  34. Defaults to `true`.
  35. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
  36. +
  37. Defaults to `open`.
  38. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=index-ignore-unavailable]
  39. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]