diff --git a/plugins/arElasticSearchPlugin/lib/arElasticSearchMultiIndexWrapper.class.php b/plugins/arElasticSearchPlugin/lib/arElasticSearchMultiIndexWrapper.class.php index 61f3b5ecdb..fc4641a51a 100644 --- a/plugins/arElasticSearchPlugin/lib/arElasticSearchMultiIndexWrapper.class.php +++ b/plugins/arElasticSearchPlugin/lib/arElasticSearchMultiIndexWrapper.class.php @@ -40,24 +40,6 @@ public function addIndex($name, Elastica\Index $index) $this->indices[$name] = $index; } - /** - * Delete ElasticSearch indices. If an index name is provided, - * only that specific index will be deleted. - * - * @param string $name Index name to be deleted (optional) - */ - public function delete($name = null) - { - if ($name && $this->indices[$name]) { - $this->indices[$name]->delete(); - - return; - } - foreach ($this->indices as $index) { - $index->delete(); - } - } - public function addDocuments($name, $documents) { $this->indices[$name]->addDocuments($documents);