I am working with sqlite3 file.
First, I entered relatively big database, file size was about 100 mb.
Than I made
$db->exec("DELETE FROM table");
and entered just a small part of that database. But file size remained 100 mb.
What should you do to change sqlite file size when deleting it’s content?
The command you are looking for is vacuum. There is also a pragma to turn auto-vacuuming on.
From the documentation: