You are here

function search_api_elasticsearch_uninstall in Search API Elasticsearch 7

Implements hook_uninstall().

Delete Search API servers using the Elastica client.

File

modules/elastica/search_api_elasticsearch_elastica.install, line 57
Install/Uninstall tasks for the Search API Elasticsearch Elastica module.

Code

function search_api_elasticsearch_uninstall() {
  if (module_exists('search_api')) {
    db_delete('search_api_server')
      ->condition('class', 'search_api_elasticsearch_elastica_service')
      ->execute();
  }
}