The safe way to clean a WordPress database has four steps. Back it up. Look at what is in it before you delete anything. Clean the low-risk groups first: revisions, auto drafts and expired transients. Then optimise the tables to get the disk space back. OG Database Cleaner Lite handles the looking, cleaning and optimising for free. The backup is up to you.
We learned the “look first” step on our own site. On 27 November 2026 the og-nexus.com database measured 292.83 MB across 151 tables, up from 197.38 MB nine days earlier. It looked like a mess. It was not: our two biggest tables held over 60% of it, and both belong to features we use every day. A big database is not always junk.
What should I do before I clean anything?
Take a full database backup and check that it downloads. In OG Database Cleaner, deletions are permanent. There is no trash and no undo inside the plugin, so the backup is the only way to bring a row back.
Pick a quiet time too. Optimising locks a table while it runs, so avoid your busiest hours.
What is safe to delete from a WordPress database?
Start with the rows WordPress itself makes and no longer needs:
- Revisions. Older saved versions of posts. They only matter if you want to roll back.
- Auto Drafts. WordPress saves a draft every 60 seconds while you write.
- Expired Transients. Cached values that outlived their expiry date. The WordPress Transients API handbook explains them.
- Deleted Posts, and spam and deleted comments.
- Orphaned meta. Post, term, user and comment meta whose parent record is gone.
Be slower with duplicated meta. OG Database Cleaner leaves those on Manual by default, because duplicates are better checked by hand.
How do I clean it step by step?
- Install OG Database Cleaner Lite and open OG Nexus › Database Cleaner. Stay in Easy mode for now.
- Open the Tables tab and read the Size and Relative % columns. Find out what your biggest tables are before you touch them.
- Go to WordPress Core. Click the refresh icon on an item to count it, and its bin icon to clean it.
- Clean Revisions, Auto Drafts and Expired Transients first.
- Back on Tables, press Optimize on the tables you cleaned. Deleting rows does not shrink the database on disk straight away. Optimising does.
- Test your forms, checkout and login afterwards.
Only entries older than the Age Threshold are counted and cleaned. Ours is set to 7 days, so anything newer is left alone.
Why did my scan find almost nothing?
That is usually good news. With the 7-day threshold, our own scan on 27 November found 88 revisions, 1 auto draft, 0 orphaned post meta and 0 expired transients.
A count of 0 does not mean the plugin is broken. It means there is nothing older than the threshold to clean. Older sites with years of plugin trials usually show far more.
What should I leave alone?
Switch to Expert mode and you also get Post Types, Options and Cron. Each row shows who uses it and a status:
- Used: the owner is installed and active. Leave it.
- Not Used: the owner is known but no longer installed. Likely a leftover, unless you plan to reinstall that plugin.
- Unknown: the cleaner does not know the owner. Unknown does not mean unused. Themes and custom code often land here.
Items used by WordPress itself are protected. Our rule: it is better to clean less and know why than to clean everything and hope.
What does the free version do, and what does the full version add?
OG Database Cleaner Lite (free) covers every WordPress Core clean-up by hand, one item at a time. It has Easy and Expert modes, the Post Types, Options and Cron lists, optimise and repair for one table at a time, database size history and a log of what was cleaned. It needs no licence key and makes no calls to OG Nexus.
The full OG Database Cleaner adds Auto Clean and the Jellybean Sweeper for scheduled clean-ups, Deep Deletions, the Metadata browser, Custom Queries, bulk table actions, the Used, Not Used and Unknown filters, and MCP tools for AI assistants. Both use the same settings, so moving up keeps them.
How do I get it?
Sign in to og-nexus.com, add OG Database Cleaner Lite to your basket and check out at £0. Your download is then in My Account > Plugin Downloads. It needs WordPress 6.6 or newer and PHP 8.1 or newer.
The OG Database Cleaner guide shows our own dashboard in full. For unused image files, which live outside the database, read how to remove unused images from the Media Library.




