| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | --:api: delete-index:request: DeleteIndexRequest:response: DeleteIndexResponse--[id="{upid}-{api}"]=== Delete Index API[id="{upid}-{api}-request"]==== Delete Index RequestA +{request}+ requires an `index` argument:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Index==== Optional argumentsThe following arguments can optionally be provided:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-timeout]--------------------------------------------------<1> Timeout to wait for the all the nodes to acknowledge the index deletion as a `TimeValue`<2> Timeout to wait for the all the nodes to acknowledge the index deletion as a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-masterTimeout]--------------------------------------------------<1> Timeout to connect to the master node as a `TimeValue`<2> Timeout to connect to the master node as a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-indicesOptions]--------------------------------------------------<1> Setting `IndicesOptions` controls how unavailable indices are resolved andhow wildcard expressions are expandedinclude::../execution.asciidoc[][id="{upid}-{api}-response"]==== Delete Index ResponseThe returned +{response}+ allows to retrieve information about the executed operation as follows:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Indicates whether all of the nodes have acknowledged the requestIf the index was not found, an `ElasticsearchException` will be thrown:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-notfound]--------------------------------------------------<1> Do something if the index to be deleted was not found
 |