Permanently Delete A File
Category:Files and Directories
Version Compatibility: Visual Basic 6
The code snippet is similar to deleting a file in Windows Explorer buy pressing Shift + Del. The Kill() function has a signature of Public Sub Kill(ByVal PathName As String).
Instructions: Copy the declarations and code below and paste directly into your VB project.