Search code examples
google-chromeindexeddb

How to delete indexedDB?


I'm working in a project which involves using IndexedDB. As I'm begining to know this technology, I need to be able to delete an indexedDB by hand so I can start over.

I found the way to do it in Firefox, but I can't find the way for Google Chrome.

I tried deleting the content of this folder (I'm using Mac):

{home}/Library/Application Support/Google/Chrome/Default/IndexedDB

but it seems Chrome stil have the DB anywhere so I can't start over.


Solution

  • In theory, all you need to do to delete an IndexedDB in Chrome is:

    1. In Chrome, go to Options > Under the Hood > Content Settings > All cookies and Site Data > find the domain where you created the IndexedDB
    2. Hit either the "X" or click "Indexed Database" > Remove

    In Windows, the file is located here:

    %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\IndexedDB

    On Mac, do the following:

    1. In Chrome, go to "Settings" (or "Preferences" under the Chrome menu)
    2. Click "show advanced settings" (at the bottom of the page)
    3. Go to "Privacy" > "Content Settings" > "All cookies and Site Data" > find the domain where you created the IndexedDB
    4. Hit either the "X" or click "Indexed Database" > Remove

    On Mac, the folder is located here:

    /Users/[USERNAME]/Library/Application Support/Google/Chrome/Default/IndexedDB/
    

    On Linux, the folder is located at:

    /home/[USERNAME]/.config/google-chrome/Default/IndexedDB/