Remove All Stored Certificates on Android
In this article
Yes, you can remove all stored certificates on Android in one go by clearing the credential storage, but the exact steps depend on your Android version and manufacturer. On most devices, you'll go to Settings > Security > Encryption & credentials > Clear credentials. This wipes all user-installed certificates (both CA and client) and resets the credential storage password. It does not remove system certificates that came with the OS. You'll need your current lock screen PIN, pattern, or password to proceed.
What You'll Need
- Your Android device unlocked and charged.
- Your lock screen PIN, pattern, or password (required to clear credentials).
- Optional: a backup of any certificates you want to keep (export them first).
Step-by-Step
- Open Settings. Swipe down from the top of the screen and tap the gear icon, or find the Settings app in your app drawer.
- Navigate to Security settings. Look for Security, Security & privacy, Biometrics and security, or Lock screen and security. The exact name varies by manufacturer (Samsung, Xiaomi, Pixel, etc.), but it's usually under the main Settings menu.
- Find the credential storage section. Look for Encryption & credentials, Credential storage, or Certificates. On stock Android (Pixel), it's under Security > Encryption & credentials. On Samsung, it's under Biometrics and security > Other security settings.
- Tap "Clear credentials" or "Clear certificates." This option is usually at the bottom of the credential storage screen. You may see a warning that clearing will remove all certificates and that some apps may stop working.
- Confirm with your lock screen credential. Enter your PIN, pattern, or password when prompted. This is a security measure to prevent unauthorized clearing.
- Confirm the action. A dialog will ask if you're sure. Tap OK or Clear to proceed.
- Wait for the process to finish. The device may take a few seconds. You'll see a confirmation or the option will gray out.
- Verify the certificates are gone. Go back to the same screen and tap User certificates or Trusted credentials — the list should be empty (or only show system certificates).
Note: Menu labels can differ slightly by Android version, device brand, and region. If you can't find the exact wording, look for anything with "credential" or "certificate" in the Security settings.
Common Mistakes
- Clearing the wrong thing: Tapping "Clear storage" on the Settings app itself (via app info) is not the same and won't clear certificates. Use the dedicated credential storage option.
- Forgetting the lock screen credential: You cannot clear credentials without entering your current PIN/pattern/password. If you've forgotten it, you'll need to reset the device (which erases all data).
- Expecting system certificates to be removed: The built-in certificates from Google, Android, and your device manufacturer are part of the OS and cannot be removed this way. Only user-added certificates are cleared.
- Not backing up important certificates: If you need a certificate later (e.g., for work VPN or email), export it before clearing, or you'll have to reinstall it.
Tips
- Back up certificates first: If you have any certificates you might need (like a corporate Wi-Fi cert), go to User certificates, tap the certificate, and choose Export (if available) to save it to a file.
- Use the search bar: In Settings, tap the magnifying glass and type "credential" or "certificate" to jump directly to the right screen.
- Know your device: Samsung, Xiaomi, and other brands often rename menus. On Samsung, it's Biometrics and security > Other security settings > Clear credentials. On Xiaomi (MIUI), it's Passwords & security > System security > Encryption & credentials.
- After clearing, restart your device: A reboot can help ensure all apps that cached certificate data refresh properly.
Troubleshooting
If you can't find the "Clear credentials" option:
- Search for "credential" in Settings. If nothing appears, your device may have the option under Security > Advanced (expand the advanced section).
- On some older Android versions (7 and below), the option is under Settings > Security > Clear credentials directly.
If the option is grayed out:
- This usually means there are no user certificates installed, or the credential storage is empty. That's fine — nothing to clear.
- If you recently set a credential storage password (not your lock screen), you may need to enter that first. Try entering your lock screen PIN/pattern/password, and if that fails, try any old credential storage passwords you set.
If you get an error like "Couldn't clear credentials":
- Restart your phone and try again.
- Make sure you're not in a work profile (some work profiles manage certificates separately). Check if you have a separate "Work" tab in Settings.
- If the problem persists, you may need to reset app preferences (Settings > System > Reset options > Reset app preferences) — this won't delete data, but it resets app permissions and defaults.
If apps break after clearing:
- Some apps (like corporate email or VPN) may have relied on the removed certificates. You'll need to reinstall those certificates from your IT department or the service provider.
- If you cleared certificates by mistake and didn't back them up, you may need to request new ones.
Frequently Asked Questions
Does clearing credentials remove my Wi-Fi passwords?
No. Wi-Fi passwords are stored separately and are not affected by clearing credential storage.
Will this delete my VPN configurations?
VPN configurations that use certificates may stop working because the certificate is gone. The VPN profile itself may remain, but it will fail to connect until you reinstall the certificate.
Can I remove only one certificate instead of all?
Yes. Instead of "Clear credentials," go to User certificates (or Trusted credentials > User), tap the specific certificate, and choose Delete or Remove. This removes only that one.
Is there a way to do this via ADB or command line?
Yes, if you have USB debugging enabled and ADB installed, you can run adb shell and then pm clear com.android.settings — but that clears the Settings app's data, which is not the same as clearing credentials and can cause other issues. The proper command is adb shell am force-stop com.android.settings — no, that doesn't help. Actually, the only reliable way is through the UI. There's no official ADB command to clear credential storage directly.
Will this affect my device's security?
Removing user-installed certificates reduces the risk of malicious certificates being trusted. System certificates remain intact, so your device's core security (HTTPS, etc.) still works normally.
Do I need to be rooted to clear certificates?
No. This is a standard Android feature available to all users. Rooting is not required and is not recommended.