question

JosephSacco414-6114 avatar image
0 Votes"
JosephSacco414-6114 asked Firedog edited

Clearing MS Edge Cookies and Cache via CMD Prompt

Hello,

I am in search of a way to clear the MS Edge cookies and cache files via CMD prompt or remotely via a script. I see many ways to achieve this for IE, but Edge seems to be a different breed. It would be helpful to have a file location that these cookies live in and can be deleted from. Please let me know if this is possible.

Thank you,

Joe

ms-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Firedog avatar image
0 Votes"
Firedog answered Firedog edited

The Edge cache files for a specific Windows user are

%homedrive%\Users\ {user} \AppData\Local\Microsoft\Edge\ {profile} \Cache\Cache_Data\*

Kill any running msedge.exe task before trying to remove the cache files. Because there's no way of knowing what a particular user's profile directories are called, you'd probably have to loop through each folder in User Data looking for folders containing a Cache_Data folder in order to DEL it or its contents. You could also query the registry to find them:

 reg query HKEY_CURRENT_USER\Software\Microsoft\Edge\Profiles /s /f Path


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.