How to uninstall an android app from command line on the device How to uninstall an android app from command line on the device android android

How to uninstall an android app from command line on the device


Trying using the pm command:

pm uninstall <package_name>

or

pm uninstall -k <package_name>

The -k flag keeps the data and cache directories after the package is removed.

I haven't tested this myself, but I don't think this should show a warning message.


To forcefully uninstall the system user apps:

Use:

adb shell pm uninstall --user 0 <package_name>


adb shell pm uninstall *your.package.name*

Did the trick for me.