Jul 11 2022 08:02 AM
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 automations to remove cache and cookies. Everything I find leads back to manually clearing within Edge. With internet exporer and the non chromium edge you were able to create scripts, which I have. Any help would be appreciated.
Jul 12 2022 04:26 PM
Jul 12 2022 05:49 PM
Jul 13 2022 06:20 AM
@josh_bodner Sadly that would not work. Trying to build out something users can use as they want to clear Edge cache as needed. I proposed that solution and it wasn't the one. Will have to have something that is easily deployable to an end user as a package.
Jul 13 2022 06:22 AM
Jul 13 2022 06:24 AM
Jul 15 2022 11:43 AM
Jul 16 2022 06:55 AM
May 25 2023 06:55 AM - edited May 25 2023 06:57 AM
The simple solution is to clear the Default Folder under the users profile. LIke Google Chrome the Edge brower puts all the user data in one location. Below should help you create a a batch file. You first kill the tasks for Edge and clear the "Default" folder. You can go up a level a few folder levels to %localappdata%\Local\Microsoft\Edge\User Data. However, I found the Default folder the most useful. If you use One Drive to save favorites you shoud be safe to use the below. If not you could backup favorites but copying the htm file under the default fold somewhere and copy it back after clearing folder. Hope this helps
Copy to notepad and save as .cmd or .bat
taskkill /f /IM msedge.exe
taskkill /f /IM msedgewebview2.exe
rmdir /q /s "%localappdata%\Microsoft\Edge\User Data\Default"