I'm trying to remove item from localStorage in javasscript but it doesn't work.
It only works manually for the sequence of the following events
Right click --> Inspect element --> Resources --> localStorage --> Right click --> Delete 
I tried:
localStorage.clear(); 
and
localStorage.removeItem(key); // the key is the link of the page and 
                              // the value is the selected word in the page 
and both didn't work, I can save item using localStorage.setItem(key, vaule) and get items from localStorage using localStorage.getItem(key) but I can't remove them.
 
     
     
    