---
title: "reportUnusedPasswordCredential(domain:userName:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialupdater/reportunusedpasswordcredential(domain:username:)"
---

# reportUnusedPasswordCredential(domain:userName:)

Informs credential managers that a password is no longer in use.

## Declaration

```swift
final func reportUnusedPasswordCredential(domain: String, userName: String) async throws
```

## Parameters

- `domain`: The website domain for which to save the password.
- `userName`: The account user name.

## Discussion

Discussion Credential managers can act on this report by removing or hiding the password credential. This call shares the updated credential data with all enabled credential managers installed on the system. note: This method throws ASAuthorizationError if the system failed to accept the update. ` if the system failed to accept the update.

## See Also

### Reporting unused and unknown credentials

- [reportUnknownPublicKeyCredential(relyingPartyIdentifier:credentialID:)](authenticationservices/ascredentialupdater/reportunknownpublickeycredential(relyingpartyidentifier:credentialid:).md)
