Equinox Online Help - Language Reference - A to Z

Home

FileDelete

Applies to
SyntaxFileDelete FileSpecExpression
Action[Statement] Deletes a file.
ScopeUsable anywhere
Notes

This statement deletes a file with the name and path (in MSDOS format) specified by FileSpecExpression.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryFile Management
See Also ChooseFile, FileDelete, FileDetails, FileExists, FileHandle, FilePath, FileRename, FileSearch, FileSearchNext, MakeDirectory, RemoveDirectory
Example

This line deletes a file on the C: drive.

FileDelete "C:\TESTDIR\MYFILE.DAT"