IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Delete an index

edit

Deleting an index is very simple:

$deleteParams['index'] = 'my_index';
$client->indices()->delete($deleteParams);