Deleting files using the delete method of System.IO
Dim FileToDelete As String FileToDelete = "file to delete" If System.IO.File.Exists( FileToDelete ) = True Then System.IO.File.Delete( FileToDelete ) MsgBox("File Deleted") End If