My console application program is creating some runtime files while it is working so what I want to do is delete all of these files on the application startup. I have tried
if (File.Exists(filePath)) { File.SetAttributes(filePath, FileAttributes.Normal); File.Delete(filePath); }