Database Cleanup – Clean the WordPress Database Safely

Database

Database junk and the plugin that left it: Action Scheduler tables, leftovers, autoload bloat, orphaned data, revisions and transients.

Finds the settings and tables removed plugins left behind, the options that load on every page view, orphaned data and clutter. Report first; only what you tick is cleaned.

Database cleanup overview: what is safe to remove, what needs review, autoloaded options and plugins that left data behind.
Database cleanup overview: what is safe to remove, what needs review, autoloaded options and plugins that left data behind.

Why Database Junk Slows Down Every Page

Deleting a plugin rarely deletes its data. Its settings, tables and scheduled tasks stay in the database, and some of them load on every single page view through autoloaded options. Add years of revisions, spam, expired transients and the completed task logs of WooCommerce's Action Scheduler, and a database that should be a few megabytes grows to hundreds, with slower queries, slower backups and slower page loads.

Database Cleanup names the plugin each leftover belongs to, so you remove what you know is gone and keep what is still in use. It shows the largest autoloaded options with their owner and can switch autoload off while keeping the value, which is often the single biggest speed fix on an older site. Nothing is cleaned without a report first and your explicit tick, and it asks for a backup before you start.

Who it is for

  • Older sites that have tried and removed many plugins.
  • WooCommerce shops with large Action Scheduler tables.
  • Anyone whose host flagged a slow or oversized database.

Free

  • Leftovers of removed plugins and themes, named by plugin
  • Largest autoloaded options with their owner; autoload can be turned off while the value is kept
  • Action Scheduler: old completed, failed and cancelled tasks and their logs
  • Orphaned post, comment, term and user meta
  • Revisions, old auto-drafts, spam, trash and expired transients
  • Every table with owner, size and overhead, and a database score

Ask Clearyvo: an AI Assistant in the Plugin

Ask about your site in your own words. Ask Clearyvo reads what Database Cleanup and your other Clearyvo plugins found, runs a check when needed and proposes fixes. Nothing changes until you click Allow, and every change can be undone under Recent changes on the Site health page. It is off until you turn it on.

For example:

  • “How big is my database, and what can go?”
  • “Delete the old revisions.”

Free: 30 questions a month for each site, 300 with Clearyvo Pro. No API key and no account. Needs WordPress 6.9 or newer. When you turn it on, your questions and the check results the assistant reads go to the Clearyvo Assistant service, which uses Anthropic’s Claude to answer; no visitor data is sent. More about AI and Clearyvo.

Free in full: no paid features. Database Cleanup is also part of Clearyvo Pro, the all-in-one plugin with every site checker.

Good to Know

  • Make a database backup before cleaning: deleted rows cannot be restored from inside WordPress.
  • Dropping tables is not offered, because a wrong guess cannot be undone.

Where to Get It

Database Cleanup is the free plugin Clearyvo Database Cleanup. With a second Clearyvo plugin both move under one Clearyvo Hub menu and count in the Site health score. Clearyvo Pro contains it too: with Clearyvo Pro you do not need the separate plugin.

WordPress 6.2, PHP 7.4. English interface.

How to Clean Up the WordPress Database

  1. Install the free Clearyvo Database Cleanup plugin: under Plugins → Add New Plugin once it is on WordPress.org, or with the download button on this page (then Plugins → Add New Plugin → Upload Plugin).
  2. Open Database Cleanup in the WordPress admin (under Clearyvo Hub when you use more than one Clearyvo plugin) and run the check. It works in short steps, so it finishes on shared hosting and large sites too.
  3. Read the report. Nothing on the site changes until you tick an item and confirm.

← All WordPress checkers