DeleteFile()

Syntax

Result = DeleteFile(Filename$ [, Mode])
Description
Deletes the specified file.

Parameters

Filename$ The file to delete.
Mode (optional) Options for the delete operation. It can be one of the following values:
  #PB_FileSystem_Force: Also deletes the file which are protected (read-only).

Return value

Returns nonzero if the operation was successful or zero if it failed.

See Also

CopyFile(), RenameFile(), FileSize(), CreateFile(), OpenFile()

Supported OS

All

<- DeleteDirectory() - FileSystem Index - DirectoryEntryAttributes() ->