Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Deletes an item by moving it to trash without user interface.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 2.8 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The native file path to the file or folder to be deleted. | "/Users/John/Desktop/test.txt" |
Returns OK or error message.
Delete a file on desktop on Mac by moving it to trash:
$r = MBS("Files.MoveToTrash"; "/Users/cs/Desktop/testing.fp7")
Delete a file on desktop on Windows by moving it to trash:
$r = MBS("Files.MoveToTrash"; "C:\Users\Christian\Desktop\testing.fp7")
Delete a file to trash with path in variable:
$r = MBS("Files.MoveToTrash"; $Path)
This function checks for a license.
Created 18th August 2014, last changed 9th March 2021