HTML and CSS Reference
Listing 5.15. app.js—Updating and deleting tasks
Try it out
You should now be able to mark the completed check box and delete items in the Task List
view. But one final function remains to complete the application: the dropDatabase
function. This will delete the entire tasks database (or truncate the tasks table if using the
Web SQL fallback).
5.3.7. Dropping a database using IndexedDB