remove(_:mode:completionHandler:)
Removes a domain from the File Provider extension using the specified options.
Declaration
class func remove(_ domain: NSFileProviderDomain, mode: NSFileProviderManager.DomainRemovalMode, completionHandler: @escaping @Sendable (URL?, (any Error)?) -> Void)class func remove(_ domain: NSFileProviderDomain, mode: NSFileProviderManager.DomainRemovalMode) async throws -> URL?Parameters
- domain:
The domain to remove.
- mode:
An option that determines how the system handles user data. For a complete list of options, see Domainremovalmode.
- completionHandler:
A block that the system calls after removing the domain. It takes the following parameter:
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(_:completionHandler:)removeAllDomains(completionHandler:)NSFileProviderManager.DomainRemovalModedisconnect(reason:options:completionHandler:)NSFileProviderManager.DisconnectionOptionsreconnect(completionHandler:)waitForStabilization(completionHandler:)temporaryDirectoryURL()