Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
A file path.
For a directory or file to be deletable, the current process must either be able to write to the parent directory of
path or it must have the same owner as the item at
path is a directory, every item contained in
path must be deletable by the current process.
If the file at
path is inaccessible to your app, perhaps because it does not have search privileges for one or more parent directories, this method returns
NO. If the item at
path is a symbolic link, it is not traversed.