delete-index.asciidoc 767 B

1234567891011121314151617181920
  1. [[indices-delete-index]]
  2. == Delete Index
  3. The delete index API allows to delete an existing index.
  4. [source,js]
  5. --------------------------------------------------
  6. DELETE /twitter
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. The above example deletes an index called `twitter`. Specifying an index,
  11. alias or wildcard expression is required.
  12. The delete index API can also be applied to more than one index, by either using a comma separated list, or on all indices (be careful!) by using `_all` or `*` as index.
  13. In order to disable allowing to delete indices via wildcards or `_all`,
  14. set `action.destructive_requires_name` setting in the config to `true`.
  15. This setting can also be changed via the cluster update settings api.