ACC Logo
ADBApp ManagementCaution

adb shell pm clear <package_name>

Clear app data and cache

Caution RequiredInstantly wipes all user accounts, local databases, logins, and configurations stored by the application.
What It Does

Clears all user data, database records, shared preferences, and cache files associated with a package, resetting it to factory fresh install state.

Command Syntax
Terminal
$adb shell pm clear <package_name>
Parameters & Placeholders Breakdown

This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:

<package_name>Application Package ID

The unique reverse-domain bundle identifier of the Android application defined in its AndroidManifest.xml.

Real-world value:com.whatsapp or com.android.chrome
Command syntax: adb uninstall com.whatsapp (or: adb shell pm clear com.android.chrome)
To list all installed packages on your phone, execute "adb shell pm list packages".
Usage Examples
$adb shell pm clear com.example.myapp
$adb shell pm clear com.android.browser
Prerequisites & Requirements
  • Device connected and authorized
Related Commands
Found an error or missing flag for adb shell pm clear <package_name>?

Submit a correction or request additional examples on GitHub.

Having issue? Contact @mkr_infinity

Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.

Contact @mkr_infinity