Remove items from localStorage when the link is generated