IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete Index APIedit
Delete Index Requestedit
A DeleteIndexRequest
requires an index
argument:
Optional argumentsedit
The following arguments can optionally be provided:
Timeout to wait for the all the nodes to acknowledge the index deletion as a |
|
Timeout to wait for the all the nodes to acknowledge the index deletion as a |
Timeout to connect to the master node as a |
|
Timeout to connect to the master node as a |
Synchronous Executionedit
DeleteIndexResponse deleteIndexResponse = client.indices().deleteIndex(request);
Asynchronous Executionedit
Delete Index Responseedit
The returned DeleteIndexResponse
allows to retrieve information about the executed
operation as follows:
If the index was not found, an ElasticsearchException
will be thrown: