Skip to main content

DeleteLogicalFile

STD.File.DeleteLogicalFile( filename [ , ifexists ] )

filenameA null-terminated string containing the logical name of the file.
ifexistsOptional. 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');