sqlite> DELETE FROM mails WHERE (`id` = 71); SQL error: database is locked
How do I unlock the database so this will work?
This link solve the problem. : When Sqlite gives : Database locked error It solved my problem may be useful to you.
And you can use begin transaction and end transaction to not make database locked in future.