sqlite> DELETE FROM mails WHERE (`id` = 71); SQL error: database is locked
How do I unlock the database so this will work?
lsof command on my Linux environment helped me to figure it out that a process was hanging keeping the file open. Killed the process and problem was solved.