Created
July 7, 2021 18:36
-
-
Save Akifcan/b7682293edb920a78f44d90369f3ffce to your computer and use it in GitHub Desktop.
delete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = window.indexedDB.open("photos", 1); | |
var request = db.transaction(["photos"], "readwrite") .objectStore("photos") | |
.delete(2); //bu değerimizi primary key değerine göre belirtiyoruz. yani id keyimiz. | |
request.onsuccess = function (event) { | |
console.log('deleted!'); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment