03-13-2012, 02:55 PM
I believe that you are looking for something like this:
Please note that this deletes cookies from Internet Explorer
Code:
Dim DirectoryInfo As New System.IO.DirectoryInfo(Environment.SpecialFolder.Cookies)
Dim FileInfo() As System.IO.FileInfo = DirectoryInfo.GetFiles("*", IO.SearchOption.AllDirectories)
For Each f In FileInfo
My.Computer.FileSystem.DeleteFile(f.FullName)
Next
Please note that this deletes cookies from Internet Explorer