DeleteLogicalFile

STD.File.DeleteLogicalFile( lfn, allowMissing )

lfnA null-terminated string containing the logical name of the file.
allowMissingOptional. A boolean value indicating whether to post an error if the filename does not exist. If omitted, the default is FALSE.

The DeleteLogicalFile function removes the named file from disk.

Example:

A := STD.File.DeleteLogicalFile('Fred');