tags:

views:

1035

answers:

3

Hi,

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

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

Thanks in advance. Best regards. Jose.

+2  A: 

I think you need to start up your emulator with the command: -wipe-data

MattyW
FYI, `-wipedata` will actually delete the entire user data image - http://developer.android.com/intl/fr/guide/developing/tools/emulator.html
Richard Szalay
Thanks a lot Matt.Best Regards.Jose
Josemalive
+6  A: 

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

ccheneson
A: 

Perhaps this is too obvious but uninstalling the application via Manage Applications will remove the db, assuming it's in the application's files dir.

Robert Nekic