Link Search Menu Expand Document

How to run vacuum on sqlite

On any SQLite based database (e.g. Firefox or Liferea) you can run "VACUUM" to reduce the database file size. To do this you need the SQLite command line client which can be run using
sqlite3 <database file>
When called like this you get a query prompt. To directly run "VACUUM" just call
sqlite3 <database file> "VACUUM;"
Ensure that the program using the database file is not running!

Alternatives to Manual VACUUM

If you are unsure how to do it manually you can also use a helper tool like BleachBit which along many other cleanup jobs also performs SQLite database compaction.