company logo

FileHandle :: Delete - Delete a File

The function Removes a file from the file system if it Exists. The function operates with the file name passed in cpath regardless whether the file is currently open in the FileHandle or not.

Notes:

Unix: When deleting a file currently opened in the FileHandle, this file can still be accessed until it is closed. It cannot, however, be accessed by other processes. Other processes creating a file with the same file name will create a different file.

Return value:  Return value ( logical  )

The function returns YES when the question was answered positively. Otherwise it returns NO .

Implementation details

logical FileHandle  :: Delete ( NPath &cpath )
  • cpath - Complete file or directory path