Once you have your Context and know the name of the database, use:
context.deleteDatabase(DATABASE_NAME);
When this line gets run, the database should be deleted.
More Related Contents:
- I am getting this error on my code [closed]
- Sqlite for Android
- How can I avoid concurrency problems when using SQLite on Android?
- How to store(bitmap image) and retrieve image from sqlite database in android? [closed]
- Best way to work with dates in Android SQLite [closed]
- How do I join two SQLite tables in my Android application?
- How can I create a user-defined function in SQLite?
- SQLite Android Database Cursor window allocation of 2048 kb failed
- Android SQLite: Update Statement
- Android error – close() was never explicitly called on database
- How do I create a database in android? [closed]
- What is a maximum size of SQLite database on Android?
- How to save images into Database
- Full text search example in Android
- Android SimpleCursorAdapter doesn’t update when database changes
- rawQuery(query, selectionArgs)
- How to implement Export sqlite To excel/csv file in android?
- How to store and retrieve a byte array (image data) to and from a SQLite database?
- SQLite Query in Android to count rows
- App Crashes On Startup Due To java.lang.IllegalArgumentException: column ‘_id’ does not exist
- How does one check if a table exists in an Android SQLite database?
- Attempt to reopen an already-closed object sqlitedatabase
- how to save image taken from camera and show it to listview – crashes with “IllegalStateException”
- How insert image in room persistence library?
- How to store JSON object in SQLite database
- sqlite3: not found
- Android SQLiteOpenHelper cannot open database file
- Getting the type of a column in SQLite
- Android table creation Failure (near “autoincrement”: syntax error)?
- sqlite insert into table select * from