diff --git a/bootstrap_site_alert.install b/bootstrap_site_alert.install
index ca71cf3..0e3ee37 100644
--- a/bootstrap_site_alert.install
+++ b/bootstrap_site_alert.install
@@ -18,11 +18,17 @@ function bootstrap_site_alert_install() {
 
 /**
  * Implements hook_uninstall().
- *
- * We switched to states in 8.x-1.3.
- * Leaving this is for older versions of the module.
  */
 function bootstrap_site_alert_uninstall() {
+  // Remove state that the module has set.
+  $string = 'bootstrap_site_alert';
+  $database = \Drupal::database();
+  $database->delete('key_value')
+    ->condition('name', $database->escapeLike($string) . "%", 'LIKE')
+    ->execute();
+
+  // Remove settings. We switched to states in 8.x-1.3. Leaving this is for
+  // older versions of the module.
   \Drupal::service('config.factory')->getEditable('bootstrap_site_alert.settings')->delete();
 }
 
