-
Ensure
adb
(Android Debug Bridge) is installed:sudo apt update && sudo apt install adb -y # Debian/Ubuntu sudo pacman -S android-tools # Arch Linux sudo dnf install android-tools # Fedora
-
Enable USB Debugging on your Android device:
- Go to Settings > About phone.
- Tap Build number multiple times until you see "You are now a developer!"
- Go to Developer options and enable USB Debugging.
- Connect your Android device to the Linux computer via USB.
- Run the Bash script:
chmod +x adb_delete_youtube.sh ./adb_delete_youtube.sh
- Checks if
adb
is installed. - Lists connected devices.
- Uninstalls YouTube (
com.google.android.youtube
) for the current user. - Reboots the device to apply changes.
If you ever want to reinstall YouTube, use:
adb shell cmd package install-existing com.google.android.youtube