How to delete folders in sdcard of file explorer?

后端 未结 6 963
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 06:53

I created several folders in the sdcard (Eclipse) by running an Android application in the emulator. Now I want to delete the folders which I have created on the sdcard.

6条回答
  •  广开言路
    2021-02-02 07:33

    If you want to delete everything in your android file system, you need to get its storage name from adb!

    # adb shell echo $EXTERNAL_STORAGE
    

    It will give you the path where everything is stored!It will print the storage name in command line, for few devices it is /sdcard and for few, it is /storage/emulated/legacy etc Now you want to delete everything in that, you need

    # adb shell rm -r /sdcard/
    

    that /sdcard/ is not same for all devices, it could be /storage/emulated/legacy/ for some devices!

    warning-: It will delete every folder in your file manager except "android" folder

    now if you want to delete a particular folder in that file manager

    # adb shell rm -r /sdcard/FolderName
    

提交回复
热议问题