SQLite Forum

Lua db:close deletes WAL file
Login
Then you already have the answer you are looking for and can stop repeat-posting the same problem over and over again.

There is no problem with SQLite, only with the way you are abusing it. The book 1984 is a warning, not an instruction manual. The same goes for https://sqlite.org/howtocorrupt.html