5

I'm trying to delete some files from DDMS data/data/package_name/files/filename How can i done this?

Praveenkumar
  • 24,084
  • 23
  • 95
  • 173

3 Answers3

13

adb shell rm /yourpath/to/yourfilename

georgiecasey
  • 21,793
  • 11
  • 65
  • 74
5

Use the File Explorer of the Eclipse DDMS plugin or the adb shell command from your android platform tools to browse and delete the file system on your device.

Dyonisos
  • 3,541
  • 2
  • 22
  • 25
4

You can use ADB to get into the device/emulator shell and then execute normal linux-commands.

In your case, you would use rm to remove something (if you want to remove a folder use the -r parameter).


From the Android Docs:

Internal Storage

You can save files directly on the device's internal storage. By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed.

This might help you. You can also check if you can "delete application data" in Androids Application Manager.

Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111