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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -