info.mailtraq.com > Management > Script Functions A-Z > DeleteFile() DeleteFile()Erases the specified file from disk but only if it is not currently open. Note that the parameter passed is the name of the file, not a file handle. If the path argument provides only a filename, Mailtraq assumes the file's path to be \database.
DeleteFile( path )
- path
- The filing system name of the file to be deleted
//Example usage
DeleteFile("c:\data\control.txt") |