Asks the delegate whether the item at the specified URL should be deleted.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The file manager object that is attempting to remove the file or directory.
The URL indicating the file or directory that the file manager is attempting to delete.
true if the specified item should be removed or
false if it should not be removed.
Removed items are deleted immediately and not placed in the Trash. If the specified item is a directory, returning
false prevents both the directory and its children from being deleted.
This method performs the same task as the
file method and is preferred over that method in macOS 10.6 and later.