WARNING: Version 6.2 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Delete Index
editDelete Index
editThe delete index API allows to delete an existing index.
DELETE /twitter
The above example deletes an index called twitter
. Specifying an index or a
wildcard expression is required. Aliases cannot be used to delete an index.
Wildcard expressions are resolved to matching concrete indices only.
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.
In order to disable allowing to delete indices via wildcards or _all
,
set action.destructive_requires_name
setting in the config to true
.
This setting can also be changed via the cluster update settings api.