ray ray - 5 months ago 12
Android Question

What is the command from shell to delete a database in sqlite?

I need to delete my database using shell. Please help me find the command to DROP/DELETE my wsemp database. I have tried DROP wsemp, DELETE wsemp etc but not working.

Answer

You can delete your SQLite database using shell command as below:

adb shell
cd /data/data
cd <your.application.java.package>
cd Databases
rm <your db name>

For more details check out Examining sqlite3 databases from a remote shell