I've tried several different commands for clearing my Web SQL Database and none of them work. Just to show you I've assembled all of them into one overkill function. What am I missing?
/** Drop Table from Database - Fix This **/ function overKill(tablename){ var query = "DELETE FROM " + tablename; db.transaction(function (tx) { tx.executeSql(query); }); var query = "DELETE * FROM " + tablename; db.transaction(function (tx) { tx.executeSql(query); }); var query = "DROP TABLE " + tablename; db.transaction(function (tx) { tx.executeSql(query); }); }