Tells the delegate that some entity wants to delete an item that is inside of a presented directory.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The URL of the item being deleted from the presented directory. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.
The Block object to call after updating your data structures. Pass
nilto the block’s
errorparameter if you were able to successfully prepare for the deletion of the item. Pass an error object if your object could not prepare itself properly.
This method is relevant for applications that present directories. This might occur if the delegate manages the contents of a directory or manages a file that is implemented as a file package. When called, your implementation of this method should take whatever actions needed to update your application to handle the deletion of the specified file.