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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
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)
Created 18th August 2014, last changed 9th March 2021
Files.MoveFile - Files.ReadAndWriteFile
Feedback: Report problem or ask question.