Forum Discussion
steelea
Jul 11, 2022Copper Contributor
Microsoft Edge Cache Removal Script
Good Morning, Trying to find a way to automate a cache and cookie removal for Microsoft Edge (Chromium). I have reviewed documentation, github, reddit, and other items but there are no true automatio...
Bipin-prakash
Jul 13, 2022Brass Contributor
Here is the setting steelea was referring to.
https://support.microsoft.com/en-us/microsoft-edge/delete-cookies-in-microsoft-edge-63947406-40ac-c3b8-57b9-2a946a29ae09
Delete cookies every time you close the browser:
In Edge, select Settings and more > Settings > Privacy, search, and services.
Under Clear browsing data, select Choose what to clear every time you close the browser.
Turn on the Cookies and other site data toggle.
Once this feature is turned on, every time you close your Edge browser all cookies and other site data will be deleted. This signs you out of most sites.
If you need a script, here is a starting point
https://gist.github.com/mark05e/745afaf5604487b804ede2cdc38a977f
Hope this helps!
Best,
bp
https://support.microsoft.com/en-us/microsoft-edge/delete-cookies-in-microsoft-edge-63947406-40ac-c3b8-57b9-2a946a29ae09
Delete cookies every time you close the browser:
In Edge, select Settings and more > Settings > Privacy, search, and services.
Under Clear browsing data, select Choose what to clear every time you close the browser.
Turn on the Cookies and other site data toggle.
Once this feature is turned on, every time you close your Edge browser all cookies and other site data will be deleted. This signs you out of most sites.
If you need a script, here is a starting point
https://gist.github.com/mark05e/745afaf5604487b804ede2cdc38a977f
Hope this helps!
Best,
bp
- steeleaJul 13, 2022Copper ContributorHey, I've started out on the scipt and modified the entries, even tried removing all the default edge folders, no luck.