try
{
foreach (string strFileName in Directory.GetFiles(
Environment.GetFolderPath(Environment.SpecialFolder.Cookies)))
{
if (strFileName.ToLower().IndexOf("index.dat")==-1)
{
File.Delete(strFileName);
}
}
}
catch(Exception ex)
{
}