Contents

removeCredentialIdentities(_:completion:)

Removes the given credential identities from the store.

Declaration

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

Parameters

  • credentialIdentities:

    An array of Aspasswordcredentialidentity objects to remove from the store.

  • completion:

    An optional completion handler called after removing the credential identities. If the operation fails, an error with domain Ascredentialidentitystoreerrordomain is provided and none of the objects in credentialIdentities is removed from the store.

Discussion

Use this method only if the store supports incremental updates to remove previously added credentials to the store.

See Also

Deprecated methods