7

Using the DDMS Perspective in Eclipse, can you delete directories on the phone? You can definitely select and delete files, but I can't seem to delete any directories. The only way I have figured out how to is at the command prompt:

C:\>adb shell
$ rmdir /mnt/sdcard/Android/data/mydirectory/
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370
  • 1
    Thanks for providing the adb route - at least that's a great fallback – Victor Grazi Feb 09 '12 at 02:37
  • I was only able to remove empty directories using this which was a bit tedious. I'm curious if anyone has any way of getting rid of the contents before deleting... other than writing some sort of script (although why not... I don't have much script experience, so it can only benefit me to learn a little...) – ArtOfWarfare Sep 10 '12 at 17:45

2 Answers2

0
  • Use "adb shell %your device%" go to the folder you want to delete and
  • use 'rmdir %folder name%' ( make sure the folder is empty )
NadavRub
  • 2,520
  • 27
  • 63
0

I do not know if the android plugin supports the option you are looking for. But I can tell you that it depends on the device also. For example on rooted phones you can use HierarchyViewer and also on the emulator , but this tool will not work with none rooted devices.

You should consider that maybe you are not able to delete because your phone is not rooted. This is for the internal storage, and for external you should consider if your phone is connected with your pc with charge only mode or with disc storage mode. If you connect with charge only mode maybe there will be no-option for deleting files...

Again I do not have you the right answer but I gave you some tips you should definitely consider.

Priebe
  • 4,942
  • 3
  • 24
  • 38
Lukap
  • 31,523
  • 64
  • 157
  • 244