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 API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Delete Index API
editDelete Index Request
editA DeleteIndexRequest
requires an index
argument:
Optional arguments
editThe 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 Execution
editDeleteIndexResponse deleteIndexResponse = client.indices().deleteIndex(request);
Asynchronous Execution
editDelete Index Response
editThe returned DeleteIndexResponse
allows to retrieve information about the executed
operation as follows:
If the index was not found, an ElasticsearchException
will be thrown: