9

I need to remove a file from the /data/data folder my app added. I am looking at the file with the DDMS in Eclipse.

If DDMS can't , how would I delete it otherwise?

Ian Vink
  • 66,960
  • 104
  • 341
  • 555
  • 1
    Can you explain the problem more precisely: what does it mean "If DDMS can't" ? What exactly happens when you try to delete it via DDMS. Alternatively to DDMS you can always use the command line "adb shell"; adb is in the tool folder of your Android SDK. You can then use it just like you use a linux shell, browse folders, delete files (if you have the permissions to it). – Mathias Conradt Jun 13 '10 at 20:44

2 Answers2

15

The accepted answer works of course but the question asked how to do it in DDMS, so here it is:

  1. Ensure your emulator is running and go to DDMS perspective.
  2. In the Devices window select your emulator
  3. Then go to Window-->Show View-->File Explorer
  4. Select the file and click the red minus in the top right of File Explorer to delete the file off the device or emulator.
miva2
  • 2,111
  • 25
  • 34
georgiecasey
  • 21,793
  • 11
  • 65
  • 74
12
adb shell rm /path/to/file
zed_0xff
  • 32,417
  • 7
  • 53
  • 72