FYI, `localStorage` object is internally keyed on your domain, so you can safely do `localStorage.clear()` without wiping out the user's entire DB, only your keys.