Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the cache data in Electron(atom shell)?

I want to clear cache data in Electron(atom-shell). I don't find any api like gui.App.clearCache()(node-webkit api to clear cache data) in Electron. If you find any api or any other way please let me know. comments are appreciated .

like image 535
neel Avatar asked Jul 16 '15 06:07

neel


People also ask

How do I clear my Electron app cache?

CTRL+SHIFT+I opens up the dev tools in Electron apps. This answer is one of possible solutions. Thank you, this is helpful if you just need to quickly clear the cache without writing code for it for a one time thing.

Where is Electron cache stored?

On environments that have been using older versions of Electron, you might find the cache also in ~/. electron . You can also override the local cache location by providing a electron_config_cache environment variable.


1 Answers

The Electron stores it's cache in these folders:

Windows:
C:\Users\<user>\AppData\Roaming\<yourAppName>\Cache

Linux:
/home/<user>/.config/<yourAppName>/Cache

OS X:
/Users/<user>/Library/Application Support/<yourAppName>/Cache

So deleting these folders can also help you. Of course this is one time solution ;-)

like image 82
pagep Avatar answered Sep 23 '22 01:09

pagep