Android: Delete entire database

Sosi picture Sosi · Jan 29, 2010 · Viewed 11.2k times · Source

I would like to delete a complete database created by my application.

Do you know any adb command, or android sentence to do it?

Answer

ccheneson picture ccheneson · Jan 29, 2010

You can run the command:

adb -s emulator-5554 shell (or whatever port you use)
cd /data/data/<packagename>/databases/

By typing ls, you will see the databases created and you can remove the one you want with rm

rm myapp.db

See more here