[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eSmart Lock for Passwords is deprecated and developers should migrate to Credential Manager for enhanced security and user experience.\u003c/p\u003e\n"],["\u003cp\u003eCredential Manager supports passkey, password, and federated identity authentication, offering greater flexibility and stronger protection.\u003c/p\u003e\n"],["\u003cp\u003eCredentials stored via Smart Lock should be deleted upon failed login attempts or when a user deletes their account within the app.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eCredentialsClient.delete()\u003c/code\u003e method to programmatically remove credentials from Smart Lock.\u003c/p\u003e\n"]]],[],null,["# Delete stored credentials\n\n| **Deprecated:** Smart Lock for Passwords is deprecated. To ensure the continued security and usability of your app, [migrate to\n| Credential Manager](https://developer.android.com/training/sign-in/passkeys/) today. Credential Manager supports passkey, password, and federated identity authentication (such as Sign-in with Google), stronger security, and a more consistent user experience.\n\nDelete credentials from Smart Lock when either of the following circumstances\noccur:\n\n- Signing in with the credentials fails because the account no longer exists or the password is incorrect.\n- The user completes the app's account deletion flow.\n\nTo delete credentials, call [`CredentialsClient.delete()`](/android/reference/com/google/android/gms/auth/api/credentials/CredentialsClient#delete(com.google.android.gms.auth.api.credentials.Credential)): \n\n mCredentialsClient.delete(credential).addOnCompleteListener(\n new OnCompleteListener\u003cVoid\u003e() {\n @Override\n public void onComplete(@NonNull Task\u003cVoid\u003e task) {\n if (task.isSuccessful()) {\n // Credential deletion succeeded.\n // ...\n }\n }\n });"]]