You are not deleting the database table, Android Studio does not point to any errors when clicking the button the program does nothing
(NA ACTIVITY DatabaseHelper) public void delete () {
SQLiteDatabase db = getWritableDatabase();
db.execSQL("DROP IF TABLE EXISTS mylist_data");
onCreate(db);
}
(NA ACTIVITY MainActivity) (On) public class MainActivity extends AppCompatActivity {
DatabaseHelper myDB;
Button button, button4, button2, button5;
EditText editText, editText2, editText3, editText4;
(Below the time to call the method)
button2.setOnClickListener (new View.OnClickListener () { @Override public void onClick (View v) {
myDB.delete();