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:

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