for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GBProd\ElasticsearchExtraBundle\Handler;
use Elasticsearch\Client;
/**
* Handler to delete index command
*
* @author gbprod <[email protected]>
*/
class DeleteIndexHandler
{
* Handle index deletion command
* @param Client $client
* @param string $index
public function handle(Client $client, $index)
$client
->indices()
->delete([
'index' => $index,
])
;
}