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

- 24,084
- 23
- 95
- 173
-
1adb shell rm/yourpath/to/yourfilename – Samir Mangroliya Sep 14 '11 at 14:33
3 Answers
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.

- 3,541
- 2
- 22
- 25
-
the command to remove files is `rm filename` if you want to delete directories use `rm -r directoryname` – Dyonisos Sep 14 '11 at 14:35
-
3WRONG: use `rmdir` to delete directories. `rm -r` recursively removes files and directories. – Diego Torres Milano Sep 14 '11 at 14:51
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.

- 25,449
- 15
- 83
- 111
-
What files are you trying to delete? I also found [this](http://www.pocketmagic.net/?p=757) which might also help you. – Lukas Knuth Sep 14 '11 at 14:42
-
i just took contacts backup as a file (i don't know what format is this). I took this used by uri.getHost(). It's permission is -rw-rw--- – Praveenkumar Sep 14 '11 at 14:44
-
-