·15 min read
Millions of rows nobody uses: how to delete them without breaking production
You found a table with millions of rows and no obvious owner. This is the playbook: prove nothing reads it, make every step reversible before any step is destructive, then delete in batches your replicas can survive — with the MySQL and PostgreSQL queries that produce the evidence.
Intermediate- Databases
- MySQL
- PostgreSQL
- Operations