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 -> BoolParameters
- 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.