src/ElasticaExtraBundle/Handler/DeleteIndexHandler.php
public function handle(Client $client, $index)
    {
        $index = $client->getIndex($index);

        if (!$index->exists()) {
            throw new IndexNotFoundException($index);
        }

        $index->delete();
    }
public function handle(Client $client, $index)
    {
        $index = $client->getIndex($index);

        if (!$index->exists()) {
            throw new IndexNotFoundException($index);
        }

        $index->delete();
    }
public function handle ( Client $ client , $ index ) { $ index = $ client -> getIndex ( $ index ) ; if ( ! $ index -> exists ( ) ) { throw new IndexNotFoundException ( $ index ) ; } $ index -> delete ( ) ; }
Handle index deletion command

@param Client $client
@param string $index

@throws IndexNotFoundException
Handle index deletion command