Moves an item to the trash.
- iOS 11.0+
- macOS 10.8+
- Mac Catalyst 13.0+
The item to move to the trash.
On input, a pointer to a URL object. On output, this pointer is set to the item’s location in the trash. The actual name of the item may be changed when moving it to the trash, so use this URL to access it. You may specify
nilfor this parameter if you do not want the information.
true if the item at
url was successfully moved to the trash, or
false if the item was not moved to the trash.