title: Chrome not completely deleting indexedDB database
body: <p>I've been trying to close and delete an indexedDB database, but I'd say about 10% of the time it gets stuck in a less than desirable state. What happens is it will delete all of the object stores, but leave the database entry as you can see in the screenshot below.</p>
  
  <p><img src="https://i.stack.imgur.com/EKdXk.png" alt="enter image description here"></p>
  
  <p>The goal is to completely delete the indexedDB database in one fell swoop when the user logs out and then reload the page. When the database isn't completely deleted it can cause issues when the user logs in as <code>onupgradeneeded</code> isn't called and the object stores aren't recreated.</p>
  
  <pre><code>this.db.close();
  
  var request = indexedDB.deleteDatabase("mcfarljwtest2");
  
  request.onsuccess = function() {
      setTimeout(function() {
          location.reload(true);
      }, 1000);
  };
  
  request.onerror = function(error) {
      console.log(error);
  };
  </code></pre>
  
  <p>Is there something I'm missing or overlooking here to get it to completely delete 100% of the time?</p>