SQLite Forum

Why WAL file (-wal) may disappear?
Login
Something just occurred to me.  SQLite does automatically delete the WAL file if there are no open connections to it.  Is it possible that you're checking while all connections are closed ?  Perhaps whatever SQLite library you're using closes connections automatically if your program is not in the foreground, or something.