[英]How do you delete the indexed databases stored on your computer in Firefox?
在Opera中,您只需鍵入opera:webdatabases
in address字段並刪除存儲在您計算機上的所有Web SQL數據庫。
你如何在Firefox中做同樣的事情? 我需要在我的localhost上刪除一個IndexedDB來試驗一個新版本。
我知道這是舊的,但有一種方法可以在 Firefox中執行此操作:
我想出了如何刪除數據庫。 Windows根據每個應用程序單獨存儲用戶數據(在Windows 7的C:\\ Users \\\\ AppData中)。 所以我在這個目錄中找到了Firefox Profiles文件夾,轉到indexedDB文件夾並刪除了sqlite文件。 然后我重新啟動了Firefox,它運行了! Windows 7的完整路徑如下:C:\\ Users \\\\ AppData \\ Roaming \\ Mozilla \\ Firefox \\ Profiles \\ <*>。default \\ indexedDB
Firefox indexedDB(Ubuntu)
~/.mozilla/firefox-trunk/*.default/storage/persistent/<folder_to_delete>
這適合我。
我發現在控制台中運行此代碼(Ctrl + Shift + K)是一個更簡單的解決方案:
indexedDB.deleteDatabase('MyDatabaseName').onsuccess=(function(e){console.log("Delete OK");})
在Ubuntu和大多數Linux發行版上它都在你的主目錄中
~/.mozilla/firefox/<*>.default/indexedDB
這是一個節點腳本,用於刪除每個網站的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);
在OS X 10.10.2和Firefox 36.0.1上,我刪除了
~/Library/Application Support/Firefox/Profiles/*.default/storage/default/<url>/idb
它似乎已被移動到一兩個目錄。 代替
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\indexedDB
嘗試
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\<*>.default\storage\persistent\<site>
在firefox中,indexeddb可以通過以下方式刪除:
Ctrl + Shift (Alt) + Delete
並選擇清除脫機網站數據。 ~/.mozilla/firefox/<profile>.default/storage/persistent/<website>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.