How to clear the cache data in Electron(atom shell)?
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 ;-)
You can use session.clearCache api.
var remote = require('remote'); var win = remote.getCurrentWindow();win.webContents.session.clearCache(function(){//some callback.});
If you want to clear any remnants of previous login sessions, you'd better use this:
loginWindow.webContents.session.clearStorageData()