Clearing MS Edge Cookies and Cache via CMD Prompt

JosephSacco_414 6 Reputation points
2022-03-02T13:24:20.623+00:00

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

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,114 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Noel Burgess 626 Reputation points
    2022-03-02T18:48:06.74+00:00

    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
    
    1 person found this answer helpful.
    0 comments No comments