Merge WAL contents back into the main database file.
Section: WAL mode and lock handling
Run a WAL checkpoint
sql
sql
PRAGMA wal_checkpoint(TRUNCATE);Explanation
Useful in maintenance jobs or after heavy write bursts when you want to reclaim WAL size.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing WAL mode and lock handling