Delete

You can utilize the Delete method of the file class, and the StartupPath property of Appllication object which contains the path of your program.
Code:
IO.File.Delete(Application.StartupPath & "\filename.ext")
 
Back
Top