Knowing how to clear local storage in Chrome can help fix a website that is showing outdated information, behaving incorrectly, or failing to load. It can also be useful when you want to remove saved data from a particular site. The best method depends on whether you want to clear data for one website or remove stored data from many sites at once.
Chrome does not always provide a button labeled “clear local storage.” Instead, local storage is usually cleared through a site’s stored data settings or Chrome DevTools. This guide explains both approaches, how to clear local storage on mobile, and what to consider before deleting website data.
What Is Local Storage in Chrome?
Local storage is a type of website data that a browser saves on your device. A website can use it to remember preferences, keep parts of an interface available between visits, or store information that helps the site work. Unlike temporary session storage, local storage normally remains after you close Chrome and reopen it.
Local storage is associated with a website’s origin, which generally means its specific combination of protocol, domain, and port. Data saved by https://example.com is separate from data saved by another domain or by a different subdomain. Clearing data for one site therefore does not necessarily clear data for every site owned by the same company.
Local storage is only one kind of browser data. Chrome may also store cookies, cached files, IndexedDB databases, service worker data, and other site-specific information. If you are troubleshooting a website, clearing all data for that site is often more effective than deleting only its local storage.
Before You Clear Local Storage
Deleting local storage can remove information a website has saved on your device. Depending on the site, you may lose saved preferences, temporary drafts, or other locally stored content. You might also be signed out, although signing in is usually controlled by cookies rather than local storage alone.
If the site contains information you need, check whether it is saved to your account or stored only in your browser. Clearing data is usually reversible only if the site can restore it from an account or backup. Consider clearing data for one website first instead of deleting all browsing data.
- Save or submit any unsent forms, drafts, or work on the site.
- Make sure you know your login details before removing cookies or site data.
- Choose a site-specific option if you want to keep data for other websites.
- Remember that Chrome’s “clear site data” option may remove more than local storage.
Clear Local Storage for One Website in Chrome DevTools
Chrome DevTools gives you a direct way to inspect and clear local storage for the website currently open in the tab. This is a useful option when you are troubleshooting a particular page or want to remove local storage without searching through Chrome’s settings.
- Open the website whose local storage you want to clear.
- Open Chrome DevTools. On Windows or Linux, press
Ctrl + Shift + I. On a Mac, pressCommand + Option + I. You can also open the Chrome menu and choose More tools and then Developer tools. - Select the Application tab. If it is not visible, select the double-arrow or overflow menu in the DevTools tab bar and choose Application.
- In the left sidebar, expand Storage and select Local Storage.
- Select the website’s origin, such as
https://example.com. - To delete individual entries, right-click a key or value and choose the delete option. To remove all local storage entries for that origin, right-click in the table and choose Clear, if available.
DevTools layouts can vary slightly between Chrome versions. In some versions, the Application tab includes a Clear storage section with a Clear site data button. That button is convenient, but it may clear cookies, cache, IndexedDB, and other data for the origin as well as local storage. Review the available checkboxes before using it.
After clearing the data, reload the page. The website may create new local storage entries as it loads, so seeing entries again does not necessarily mean the clearing action failed.
Clear a Website’s Stored Data in Chrome Settings
If you do not need to use DevTools, Chrome’s site settings let you remove stored data for a specific website. The precise wording and menu locations can change between Chrome releases, but the general process is similar on Windows, Mac, and Linux.
- Open Chrome and select the three-dot menu in the upper-right corner.
- Choose Settings.
- Open Privacy and security.
- Select Third-party cookies or Site settings, depending on your Chrome version.
- Open the page for viewing all site data and permissions, or select the option to view data stored across sites.
- Search for the website’s domain.
- Select the delete or trash icon beside the site, then confirm if Chrome asks.
This method removes site data associated with the selected website. Because Chrome groups different types of website data together in many settings screens, it may remove more than local storage. The site could ask you to sign in again or reset some preferences the next time you visit.
You can also open a website, select the icon to the left of its address in the address bar, and open the site’s permissions or settings. Depending on the Chrome version, this may provide a shortcut to manage or delete the site’s data.
Clear Local Storage for All Websites
If you want to remove local storage across many websites, use Chrome’s browsing data controls. This is a broader action than clearing one site’s data, so check the selected time range and data categories before confirming.
- Open Chrome’s three-dot menu and choose Delete browsing data. You can also find this option under Settings and Privacy and security.
- Choose a time range. Select All time if you want to remove stored data from the entire available history.
- Open the Advanced tab if needed.
- Select Cookies and other site data. This category generally includes local storage and other website data.
- Review the other selected categories. Uncheck browsing history, cached images and files, or other items if you do not want to delete them.
- Select Delete data and wait for Chrome to finish.
Clearing cookies and other site data can sign you out of websites and reset site preferences. It may also affect locally stored information that is not connected to an account. Avoid choosing this option if you only need to fix one site and want to keep your other website data.
Clear Local Storage Using the Chrome Console
For a quick, site-specific action, you can use Chrome DevTools’ Console. This method runs a JavaScript command in the context of the page’s current origin. Open the site first, open DevTools, select Console, and enter:
localStorage.clear();
Press Enter to run the command, then reload the page. The command clears local storage for the current origin in that browser profile. It does not clear local storage for every website, and it does not automatically remove cookies, cached files, or data saved by a different origin.
To remove one specific entry instead of everything, use:
localStorage.removeItem("keyName");
Replace keyName with the exact key used by the website. Be careful when running commands in the Console: only enter code you understand and trust. Clearing storage through the Console may be faster, but Chrome’s settings or the Application tab can be easier if you want to see which site’s data you are changing.
Clear Local Storage in Chrome on Android or iPhone
Chrome on mobile does not include the desktop DevTools interface in the same way, so use the browser’s site or browsing data settings instead. Menu labels can vary by device and Chrome version.
On Android, you can usually manage data for an individual site through Chrome’s settings. Open the three-dot menu, choose Settings, then look under Site settings for All sites or a similar list. Select the website and choose Clear and reset or the available option to remove its data. This may delete more than local storage and reset the site’s permissions.
To clear data more broadly on Android, open Settings, choose Privacy and security, and select Delete browsing data. Select the relevant time range and the option for cookies or site data, then confirm. Check the categories carefully so you do not remove browsing history or other information unnecessarily.
On iPhone or iPad, open Chrome’s menu and go to Settings, then Privacy and Security and Delete Browsing Data. Select the available website data or cookies option and confirm. Chrome for iOS has different system-level behavior from Chrome on desktop, so its exact data controls may not match the desktop instructions.
Why Clearing Local Storage Might Not Fix a Website
A website can save information in several places. If removing local storage does not solve the issue, the problem may be caused by a cookie, cached file, service worker, IndexedDB database, an extension, or a problem with the website itself. Clearing the site’s full data is a reasonable next troubleshooting step, but it can sign you out and reset preferences.
You can also try reloading the page, updating Chrome, or testing the website in an Incognito window. Incognito mode starts a separate temporary browsing session and can help identify whether existing browser data or an extension is involved. It does not repair the original profile, and data created during the Incognito session is generally removed when all Incognito windows are closed.
If the site still fails in a clean session, check the site’s status or contact its support team. The problem may be on the website’s server rather than in Chrome’s local storage.
Conclusion
To clear local storage in Chrome, use DevTools for a targeted change, Chrome’s site settings to remove data for one website, or the browsing data controls to clear data more broadly. For troubleshooting, start with the specific site whenever possible. Remember that Chrome’s clear-site-data options often remove cookies and other stored website information alongside local storage, so save any important work and review the selected options before confirming.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.