You are here

function search_api_uninstall in Search API 8

Same name and namespace in other branches
  1. 7 search_api.install \search_api_uninstall()

Implements hook_uninstall().

File

./search_api.install, line 64
Install, update and uninstall functions for the Search API module.

Code

function search_api_uninstall() {
  \Drupal::state()
    ->delete('search_api_use_tracking_batch');
  foreach (\Drupal::configFactory()
    ->listAll('search_api.index.') as $index_id) {
    \Drupal::state()
      ->delete("search_api.index.{$index_id}.has_reindexed");
  }
}