[TuT] How to delete read only files.
Add this code right before your delete code if the file is read only.
there are other ways to do it, but this is the simplest way.
Code:
System.IO.File.SetAttributes("insert path here", System.IO.FileAttributes.Normal)