javascript - Remove specific storage from indexeddb -
i wondering if it's possible remove specific storage , indexeddb or, in case not possible, how clean records inside storage.
thanks
use delete(id);
function in indexeddb
var request = store.delete(id); request.onsuccess = function(e) { console.log("deleted") }; request.onerror = function(e) { console.log("error--"+e); };
yes delete entire store
db.deleteobjectstore("storename");
refer more
Comments
Post a Comment