WARNING: Version 5.x 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 you to delete an existing index.
The delete index API can also be applied to more than one index, or on _all
indices (be careful!).
All indices will also be deleted when no specific index is provided.
In order to disable allowing to delete all indices, set action.disable_delete_all_indices
setting in the config to true
.
Examples
editUsing the default index
this.ConnectedClient.DeleteIndex<ElasticSearchProject>()
or more explictly
this.ConnectedClient.DeleteIndex("index")