ray ray - 2 years ago 91
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download