I want my users to be able to reset the application, then I need to reset the SQLite database that I have created. How can I do that? I want to reset the database or delete
Bit late but this can help other people
public void clearDatabase(String TABLE_NAME) { String clearDBQuery = "DELETE FROM "+TABLE_NAME; db.execSQL(clearDBQuery); }
This should remove all the rows from the table refer documentation of SQLite database here!