Delete the indices for all types

delete/admin/indices
Internal-Use Only

Deletes the indexes (and therefore indexed data) for all of the configured types. This operation cannot be undone without first making a backup of the indexed data directly from the underlying search engine. No errors will be reported when indexes have already been deleted. If the intention is to reload the data after deleting all the indexes, one will need to make a POST request to /admin/indices to create empty indexes for all of the configured types prior to reloading the data.

Request Samples

1

Response Samples

1No example avaliable

Query Parameters

NameTypeRequiredDescription
preserveNewestIndexName
boolean
false

Whether to preserve and reuse the name of the newest index for each type when creating the next searchable index. Creating new unsearchable indexes, or deleting indexes without this option, will cause the new indexes to have new unique names. Preserving the newest index name is useful when maintaining a read-only standby deployment for Disaster Avoidance as it allows the data to be re-indexed without changing the index name. For example, when applying a breaking configuration change from the active deployment.

Default:
false

Responses

StatusMeaningDescription
204No ContentThe request succeeded.