Contents

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 throws

Parameters

  • domain:

    The domain to remove.

  • completionHandler:

    A block that the system calls after removing the domain. It takes the following parameters:

    error

    If an error occurs, this object contains information about the error; otherwise, it’s nil.

Discussion

See Also

Working with domains