adb shell rm

In this article, we shall look at the “adb shell rm” adb command and also how to use “adb shell rm” command, with an example.

How to use adb shell rm

rm is a command-line utility for removing files, directories and symbolic links

adb shell rm /mnt/sdcard/Download/test.apk

Force: remove without confirmation, no error if it doesn’t exist

adb shell rm -f /mnt/sdcard/Download/test.apk

Interactive: prompt for confirmation

adb shell rm -i /mnt/sdcard/Download/test.apk

Recursive: remove directory contents

adb shell rm -rR /mnt/sdcard/Download

Verbose

adb shell rm -v /mnt/sdcard/Download/test.apk

If you are looking for the latest ADB Driver for Android, you can get from here: ADB Driver

Leave a Comment