ray ray - 4 months ago 6x
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.


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