Contents

removeAccount(_:withCompletionHandler:)

Removes an account from the account store.

Declaration

func removeAccount(_ account: ACAccount!, withCompletionHandler completionHandler: (@Sendable (Bool, (any Error)?) -> Void)!)
func removeAccount(_ account: ACAccount!) async throws -> Bool

Parameters

  • account:

    The account to remove.

  • completionHandler:

    The handler to call when the removal has completed.

Discussion

This call will fail if you don’t have sufficient rights to remove the account.

See Also

Removing Accounts