Operaでは、アドレスフィールドに入力するだけopera:webdatabases
で、コンピュータに保存されているすべてのWebSQLデータベースを削除できます。
Firefoxで同じことをどのように行いますか?新しいバージョンを試すには、ローカルホスト上のIndexedDBを削除する必要があります。
これが古いことは知っていますが、 Firefoxでこれを行う方法があります。
データベースを削除する方法を見つけました。Windows は、ユーザー データをアプリケーションごとに個別に保存します (Windows 7 では C:\Users\\AppData に)。そこで、このディレクトリに Firefox Profiles フォルダーを見つけ、indexedDB フォルダーに移動して、sqlite ファイルを削除しました。その後、Firefox を再起動したところ、問題なく動作しました。Windows 7 のフル パスは次のようになります: C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\indexedDB
このコードをコンソール (Ctrl+Shift+K) で実行する方が簡単な解決策であることがわかりました。
indexedDB.deleteDatabase('MyDatabaseName').onsuccess=(function(e){console.log("Delete OK");})
Firefox indexedDB (Ubuntu)
~/.mozilla/firefox-trunk/*.default/storage/persistent/<folder_to_delete>
これは私にとってはうまくいきます。
UbuntuとおそらくほとんどのLinuxディストリビューションでは、ホームディレクトリにあります
~/.mozilla/firefox/<*>.default/indexedDB
以下は、すべての Web サイトの indexedDB ディレクトリを削除するノード スクリプトです。
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\indexedDB
Aaditの回答に基づいています。
var userName = "myWindowsUserName";
var fs = require("fs");
var root = "C:\\Users\\" + userName + "\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\";
var dir = fs.readdirSync(root);
var deleteFolderRecursive = function (path) { // http://www.geedew.com/2012/10/24/remove-a-directory-that-is-not-empty-in-nodejs/
if (fs.existsSync(path)) {
fs.readdirSync(path).forEach(function (file, index) {
var curPath = path + "/" + file;
if (fs.statSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
};
var anyRemoved = false;
for(var i = 0; i < dir.length; i++) {
if(/\.default$/.test(dir[i])) {
var idbPath = root + dir[i] + "\\indexedDB";
var idbDir = fs.readdirSync(idbPath);
for (var i2 = 0; i2 < idbDir.length; i2++) {
anyRemoved = true;
var rmDir = idbPath + "\\" + idbDir[i2];
console.log("removing: " + rmDir);
deleteFolderRecursive(rmDir);
}
}
}
if(anyRemoved === false)
console.log("No indexedDB files were found.");
setTimeout(function () { }, 1000 * 5);
ディレクトリを 1 つまたは 2 つ下に移動したようです。それ以外の
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\indexedDB
試す
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\storage\persistent\<site>