GhostRecords

Ghost Cleanup Task in Action

2025-10-23 · 3 min

SQL Server resembles an organism that can keep itself clean. When a row is deleted, its ghost does not disappear immediately — it remains in the data structure like a trace of a dead cell. Only the Ghost Cleanup Task arrives later to tidy things up quietly and restore balance.

It is SQL Server’s immune system: working in the background, out of sight, to keep the database from filling up with dead records.