ADB Concepts : How to Clear App data and cache of Specific App using ADB Command

Get a step-by-step walkthrough in the video below!
To clear the app data and cache of a specific app using ADB, you can use the following command:
Clear application data and cache:
command:
adb shell pm clear <packagename>
Note: <packagename> represents the application name package. The effect of this command is equivalent to clicking “Clear Cache” and “Clear Data” on the application information interface in the settings.
Example:
adb shell pm clear com.wdiodemoapp

This command resets the app to its default state, clearing:
- App data (preferences, databases, user data)
- App cache
Note: It does not uninstall the app.
GitHub Link:
No comments:
Post a Comment