Delete an index

edit

Deleting an index is very simple:

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