android - how to drop database in sqlite? -


I am using SQLite in Android. I want to leave the database.

For example: mysql-drop database dbname

How do I apply this code to SQLite?

The concept of creating or leaving a database is not meaningful for an embedded database engine such as SQLite. It only means with the client-saver database system, such as MySQL or Postgres.

To create a new database, just type sqlite_open () or sqlite3 databasefilename from the command line.

To drop a database, delete the file.

Reference:

Comments