Contents

removeCredentialIdentities(_:completion:)

Remove the given credential identities from the store.

Declaration

func removeCredentialIdentities(_ credentialIdentities: [any ASCredentialIdentity], completion: (@Sendable (Bool, (any Error)?) -> Void)? = nil)
func removeCredentialIdentities(_ credentialIdentities: [any ASCredentialIdentity]) async throws

Parameters

  • credentialIdentities:

    A list of credential identities to remove.

  • completion:

    An optional completion handler that runs when the operation finishes.

Discussion

Call this method if the credential store supports incremental updates to remove previously-added credential identities. On failure, this method calls the callback with an error with domain ASCredentialIdentityStoreErrorDomain and doesn’t remove any of the objects in credentialIdentities from the store.

See Also

Adding and removing credential identities