qkhckgxhp qkhckgxhp - 6 months ago 22
Javascript Question

Clearing localstorage

What are the ways to clear the

from the user-side and from the website-side?

For the website-side I found the "
", but I can't find out if it clears all the localStorage or specifically for the same domain.

As for the user-side, I simply couldn't find any info. about it.

Thanks in advance!


localStorage is per domain/origin.

Clear it with code using localStorage.clear()

Clear it with the browser as you clear cookies/cache.

Further reading: