src/SearchIndexHandlers/Elasticsearch.php
public function clearIndex($indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->indices()->delete(['index' => $indexName]);
    }
public function clearIndex($indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->indices()->delete(['index' => $indexName]);
    }
public function clearIndex ( $ indexName = null ) { $ indexName = $ this -> resolveIndexName ( $ indexName ) ; $ this -> elasticsearch -> indices ( ) -> delete ( [ 'index' => $ indexName ] ) ; }
Remove everything from the index.

@return mixed
Remove everything from the index .