Hi @SendilKG
Do you want to delete cache and cookie files of Edge Chromium browser? If so, the locations in your code are wrong. These are locations for Edge Legacy browser.
The locations for cache and cookie files of Edge Chromium are below:
directory: C:\Users%username%\AppData\Local\Microsoft\Edge\User Data\Default\Cache
file: C:\Users%username%\AppData\Local\Microsoft\Edge\User Data\Default\Cookies
You can first kill all Edge processes, then delete the cache and cookie files. For the PowerShell script, you can refer to the code sample below:
taskkill /F /IM "msedge.exe"
Remove-Item -path "C:\Users\$env:UserName\AppData\Local\Microsoft\Edge\User Data\Default\Cache\*" -Recurse -Force -Verbose
Remove-Item -path "C:\Users\$env:UserName\AppData\Local\Microsoft\Edge\User Data\Default\Cookies" -Recurse -Force -Verbose
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou