SQLite PRAGMA

PRAGMA freelist_count

Return the number of unused pages in the database file.

PRAGMA schema.freelist_count;

On the sample database

What PRAGMA freelist_count returns on the sample database, in SQLite 3.54.1 as built for the browser by sql.js:

freelist_count
17

What the SQLite documentation says

Return the number of unused pages in the database file.

From sqlite.org's pragma documentation for SQLite 3.54.1, in the public domain.

← foreign_keys · full_column_names →