Jump to content

I have been trying to remove Edge cookies using C#. All I have is this:

            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!001"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!002"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!003"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!004"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!005"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!006"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!121"), File.Delete);
            Array.ForEach(Directory.GetFiles(@"C:\Users\Sha Eep\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\Cookies"), File.Delete);

Yes, I know it's horribly sloppy code and I will clean it up later, but it does not work. From what I have found, this is where Edge stores its cookies, however, when I use F12 to look at cookies they are still there. It does not specify a path for the cookies (just \). I am so confused right now.

ORANGE SCREEN WINDOWS 10 VALUE OVER TIME - PC VS MAC

Spoiler

i5 7600k @ 5.0 GHz xD

Corsair H60 with Noctua NF-F12 iPPC-3000 PWM

MSI Z270-A Pro Motherboard

EVGA 1050 Ti SC

16 GB Corsair DDR4 @ 2400 MHz

500 GB Sandisk 950 PRO - Windows 10, Elementary OS, Zorin OS

500 GB Sandisk 850 PRO

1 TB WD Blue

Corsair CX750

1 x Corsair AF120 Quiet Red Led

Rosewell Tyrfing Case

Spoiler

EliteBook 8570w
i7 3720QM @ 2.6 GHz
Quadro K1000M
24 GB DDR3 @ 1600 MHz
250 GB SanDisk 850 EVO - Elementary OS, Windows 10, Debian

Spoiler

i5 3470 @ 3.2 GHz
EVGA 750 Ti SC
8 GB DDR3 @ 1333 MHz
240 GB SanDisk - Windows 10, Linux Mint

 

Link to comment
https://linustechtips.com/topic/867735-how-do-i-delete-cookies-using-c/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×