iWorks WP Tools

Database Cleaner

Find leftover revisions, transients and orphaned rows, then delete them in batches after a backup.

Download free plugin

Free. Works with WordPress 6.5 or later and PHP 7.4 or later. Version 1.0.0.

Database Cleaner plugin hero image showing leftover row counts.

Overview

WordPress databases collect leftover data for years: post revisions, expired transients, orphaned metadata, spam comments. Some cleaners tick every box for you and run OPTIMIZE TABLE, which locks tables on shared hosting.

This WordPress database cleanup plugin scans first, shows counts, and will not delete anything until you tick the categories yourself and download a SQL backup. There is no custom table. Uninstall only has options to remove.

What it cleans

  • Revisions, auto-drafts and trashed posts, in batches of 500.
  • Expired transients, deleted with delete_transient() per row so a still-valid transient is not swept up.
  • Orphaned post, comment and user meta.
  • Spam comments and expired oEmbed caches.
  • Overhead is reported only. OPTIMIZE TABLE is not run.

How to use it

  1. Install and activate the plugin, then open iWorks Tools → Database Cleaner.
  2. Run a scan. Nothing is ticked.
  3. Preview a category if you want to see sample rows (up to 50).
  4. Tick the categories you actually want to remove. Clean stays disabled until you also tick the backup box and download the SQL file.
  5. Run Clean. Results and a last-20 log stay on the Results and Settings screens.

Safe by default

Installing it changes nothing. No category is ticked. Clean stays disabled until you tick the backup box and download the SQL file. Deleting revisions is easy to undo in theory and painful in practice if a page depended on an old copy. OPTIMIZE TABLE is not run.

Privacy

Nothing is sent off the site. The SQL download is generated on your server and streamed to you.

Where iWorks comes in

Cleaning leftover rows is the easy half. Deciding what a bloated options table is doing, raising PHP limits, and checking that a plugin is not rewriting the same transients every page load is the rest. We do that work on managed WordPress plans.

Rather spend your time on your organisation than on your website?

Our free tools show you what needs fixing. Our team can fix it, and keep it fixed. With an iWorks managed WordPress plan, you pay one fixed price per year and we look after your site for you: updates, security, speed, email delivery, accessibility and the health checks behind them. No surprise invoices, no chasing a developer, and a real Irish team who already knows your site when something goes wrong.

Ask us to manage your site

Prefer to talk? Call us on 01 9692014.