Mac OS X
New in version: 4.0 4.1 4.2 4.3 4.4 5.0 5.1 5.2 5.3 5.4 6.0 6.1 6.2 6.3 6.4 6.5 7.0 7.1 Statistic
Deletes the file by moving it to trash without user interface.
|Path||The native file path to the file to be deleted.||"/Users/John/Desktop/test.txt"|
Returns OK or error message.
DescriptionDeletes the file by moving it to trash without user interface.
This function needs a native path. Please use Path.FileMakerPathToNativePath function in order to convert a FileMaker style path to a native path.
It is possible that the OS decides to not delete the file and fail (e.g. due to permission errors) or that the medium does not have a trash, so the file is deleted right away.
Delete a file on desktop on Mac by moving it to trash:
Delete a file on desktop on Windows by moving it to trash:
Feedback: Report problem or ask question.