remove(_:completionHandler:)
Removes a domain from the File Provider extension.
Declaration
class func remove(_ domain: NSFileProviderDomain, completionHandler: @escaping @Sendable ((any Error)?) -> Void)class func remove(_ domain: NSFileProviderDomain) async throwsParameters
- domain:
The domain to remove.
- completionHandler:
A block that the system calls after removing the domain. It takes the following parameters:
errorIf an error occurs, this object contains information about the error; otherwise, it’s
nil.
Discussion
See Also
Working with domains
init(for:)import(_:fromDirectoryAt:completionHandler:)add(_:completionHandler:)getDomainsWithCompletionHandler(_:)remove(_:mode:completionHandler:)removeAllDomains(completionHandler:)NSFileProviderManager.DomainRemovalModedisconnect(reason:options:completionHandler:)NSFileProviderManager.DisconnectionOptionsreconnect(completionHandler:)waitForStabilization(completionHandler:)temporaryDirectoryURL()