Skip to content

Instantly share code, notes, and snippets.

@PyramisDev
Created July 30, 2013 14:11
Show Gist options
  • Save PyramisDev/6113242 to your computer and use it in GitHub Desktop.
Save PyramisDev/6113242 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment