adb shell pm uninstall

To uninstall an app using ADB (Android Debug Bridge), you can use the pm (package manager) command.

The basic syntax is as follows:

$ adb shell pm uninstall <package_name>

Replace <package_name> with the actual package name of the app you want to uninstall.

Here’s an example:

$ adb shell pm uninstall com.example.myapp

After executing this command, the specified app will be uninstalled from the connected Android device or emulator.

Keep in mind that uninstalling an app using ADB in this way removes the app entirely, including its data. If you only want to clear the app’s data without uninstalling it, you might use the pm clear command:

$ adb shell pm clear <package_name>

Again, replace <package_name> with the package name of the app you want to clear data for. This command will remove the app’s data, but the app itself remains installed.

Leave a Comment