SQLite Forum

Can -wal -shm files be deleted if -wal file is empty?
Login
It seems that when I run `sqlite3 databasefile.db "SELECT count(*) FROM sqlite_master;"`, it just delete -shm and -wal file without touching the main db file.

Given -wal is empty, is that command guaranteed to be equivalent to manually deleting -wal and -shm? If not, under what condition they are not equivalent? Thanks.