[[indices-delete-index]]
=== Delete index API
++++
Delete index
++++
Deletes an existing index.
[source,console]
--------------------------------------------------
DELETE /twitter
--------------------------------------------------
// TEST[setup:twitter]
[[delete-index-api-request]]
==== {api-request-title}
`DELETE /`
[[delete-index-api-path-params]]
==== {api-path-parms-title}
``::
+
--
(Request, string) Comma-separated list or wildcard expression of indices to
delete.
In this parameter, wildcard expressions match only open, concrete indices. You
cannot delete an index using an <>.
To delete all indices, use `_all` or `*` . To disallow the deletion of indices
with `_all` or wildcard expressions, change the
`action.destructive_requires_name` cluster setting to `true`. You can update
this setting in the `elasticsearch.yml` file or using the
<> API.
NOTE: You cannot delete the current write index of a data stream. To delete the
index, you must <> the data stream so a new
write index is created. You can then use the delete index API to delete the
previous write index.
--
[[delete-index-api-query-params]]
==== {api-query-parms-title}
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
+
Defaults to `true`.
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
+
Defaults to `open`.
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=index-ignore-unavailable]
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]