Mac OS X
Components Crossplatform Mac & Win Server (Not) Client Old Guides Examples
New in version: 6.2 6.3 6.4 6.5 7.0 7.1 7.2 7.3 7.4 7.5 Statistic
Deletes an item by moving it to trash without user interface.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|Path||The native file path to the file or folder to be deleted.||"/Users/John/Desktop/test.txt"|
Returns OK or error message.
DescriptionDeletes an item by moving it to trash without user interface.
Use this functions to move files and folders to the trash.
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.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
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.
MBS FileMaker Plugins