LocalStorage Editing & Removing
Page 1 of 1
LocalStorage Editing & Removing
// Remove all the localStorage items
localStorage.clear();
Note this will only empty the localStorage for the current domain but won’t touch the local storage items from any external domain.
2. Using
If you want to remove a specific key from the local storage object for the current domain, you can use the
That’s all about clearing all or selected items from Loc
localStorage.clear();
Note this will only empty the localStorage for the current domain but won’t touch the local storage items from any external domain.
2. Using
- Code:
removeItem()
method
If you want to remove a specific key from the local storage object for the current domain, you can use the removeItem()
- Code:
removeItem()
// Remove an item with a key "name" the local storage
|
Similar topics
» Hacking With Python #14 - Editing or Removing Meta Data From Images
» Removing linux kernels that dont work
» Removing Cloud Based Init On Ubuntu Server
» GUI For Samba Editing On Linux
» Video Editing For Linux
» Removing linux kernels that dont work
» Removing Cloud Based Init On Ubuntu Server
» GUI For Samba Editing On Linux
» Video Editing For Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum