<!--
{
  "availability" : [
    "iOS: 12.0.0 - 17.0.0",
    "iPadOS: 12.0.0 - 17.0.0",
    "macCatalyst: 13.1.0 - 17.0.0",
    "macOS: 11.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialIdentityStore/removeCredentialIdentities(_:completion:)-2ygnf",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialIdentityStore(im)removeCredentialIdentities:completion:"
  },
  "title" : "removeCredentialIdentities(_:completion:)"
}
-->

# removeCredentialIdentities(_:completion:)

Removes the given credential identities from the store.

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

## Parameters

`credentialIdentities`

An array of [`ASPasswordCredentialIdentity`](/documentation/AuthenticationServices/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`](/documentation/AuthenticationServices/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)