Title: Reinvent Database Cleaner
Author: Reinvent WP
Published: <strong>November 17, 2026</strong>
Last modified: November 17, 2026

---

Search plugins

![](https://ps.w.org/reinvent-database-cleaner/assets/banner-772x250.png?rev=3806762)

![](https://ps.w.org/reinvent-database-cleaner/assets/icon-256x256.png?rev=3806762)

# Reinvent Database Cleaner

 By [Reinvent WP](https://profiles.wordpress.org/reinventwp/)

[Download](https://downloads.wordpress.org/plugin/reinvent-database-cleaner.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/reinvent-database-cleaner/#description)
 * [Reviews](https://wordpress.org/plugins/reinvent-database-cleaner/#reviews)
 *  [Installation](https://wordpress.org/plugins/reinvent-database-cleaner/#installation)
 * [Development](https://wordpress.org/plugins/reinvent-database-cleaner/#developers)

 [Support](https://wordpress.org/support/plugin/reinvent-database-cleaner/)

## Description

Old revisions, spam, expired temporary data and leftovers from plugins you deleted
long ago all slow your site down. **Reinvent Database Cleaner** finds them, tells
you in plain words what each one is, and removes them safely.

**One click, nothing to fear.** The home screen shows how much can be cleaned safely.
Click Clean now. Everything removed is first copied to a private backup on your 
server, so you can put it back from History with one click.

**Who owns this table?** We check the code of WordPress, your plugins and your themes
on your own server, and label every table, option and scheduled task:

 * **WordPress**: never offered for removal.
 * **Used by an active plugin**: never offered for removal.
 * **Inactive plugin**: you decide; keep it if you’ll use that plugin again.
 * **No installed plugin**: most likely left by a plugin you deleted.

**Faster pages with autoload.** WordPress loads some options on every page view.
We show the total against the limit Site Health warns about, the biggest ones and
who they belong to, and let you stop autoloading them in one click. You can undo
that too.

**Automatic cleanup.** Clean the safe items weekly or monthly, in the background.

#### What it cleans

 * Old revisions (keeps the last 5 of each post by default)
 * Auto-drafts and posts in the trash, with everything attached to them, so no orphaned
   data is left
 * Spam and trashed comments
 * Embed (oEmbed) caches
 * Orphaned post, comment, term and user data, and orphaned category links
 * Duplicate post data (review first)
 * Expired transients
 * Finished Action Scheduler tasks and their logs (WooCommerce and others)
 * Expired WooCommerce sessions
 * Leftover tables, options and scheduled tasks (Advanced mode)

#### Everything is free

 * Preview what will be removed before you clean
 * Backups and one-click restore for every cleanup, table, option and scheduled 
   task
 * Ownership labels for tables, options and cron jobs
 * Optimize tables
 * Autoload size meter, with “stop autoloading” and undo
 * Weekly or monthly automatic cleanup
 * Simple and Advanced modes, plus a settings search that understands plain words
 * WP-CLI: `wp db-cleaner status`, `clean`, `index`, `tables`, `drop-table`, `restore`

#### Safe by design

 * Backup first, always. If the backup can’t be written, nothing is removed.
 * WordPress tables, options and tasks, and anything used by an active plugin, are
   never offered for removal.
 * Leftovers are only removed when you choose them.
 * Only this site’s tables (its table prefix) are listed or changed.
 * Work runs in small, timed batches, so big sites don’t time out.

Tip: keep a recent full backup of your site too, like with any tool that changes
the database.

### External services

Database Cleaner works on your server. Your database is never sent anywhere. The
admin pages connect to one service, operated by us:

**Reinvent WP services** (`https://services.reinventwp.com`)

 * Settings search: when you type in the settings search box, the text you type,
   the plugin name and version are sent to find matching settings. Nothing is sent
   until you search.
 * Error reporting: only after you click “I Agree” on the privacy notice in the 
   plugin’s admin page. When that page hits an error, the error message, the page
   URL, your browser’s user agent and the plugin version are sent so we can fix 
   the problem. Before you agree, errors are only saved in the plugin’s own log 
   on your site.
 * Site report: to improve the plugin and help us debug when you report an error,
   the plugin’s admin page sends your site address, the admin email, the plugin 
   version and the plugin’s settings (no passwords or keys) when the page loads 
   and when you save the settings.
 * The list of Reinvent WP apps on the **Reinvent WP  Dashboard** page. When an 
   administrator opens that page, your site downloads the current list at most once
   a day and keeps a copy. Nothing about your site or you is sent.
 * The assistant (the **Describe a problem with your site** field) on the **Reinvent
   WP  Dashboard** page and on this plugin’s page. When you send a question, it 
   is sent with any screenshots or text files you attach to it (of a file, only 
   its newest part, with emails, IP addresses, passwords and keys hidden by your
   browser first), the last few messages of the conversation and the list of Reinvent
   WP plugins on your site (whether each is active, inactive or not installed, and
   its version), so the answer can point to the right plugin and setting. Nothing
   is stored; the conversation stays in your browser tab. If you send feedback from
   the assistant’s form, your email, site address and message go to the Reinvent
   WP team, like the feedback form.

[Terms of Service](https://reinventwp.com/terms-and-conditions) | [Privacy Policy](https://reinventwp.com/privacy)

### Source Code

The admin screen is built with React and TypeScript. The compiled files in `public/
js` are generated with webpack from the human-readable source code included in the
plugin at `source/admin`.

The Reinvent WP  Dashboard page and the assistant (`public/hub`) are built from 
https://github.com/reinventwp/reinventwp-apps.

## Screenshots

[⌊Home: what can be cleaned safely, database size and autoload.⌉⌊Home: what can 
be cleaned safely, database size and autoload.⌉[

Home: what can be cleaned safely, database size and autoload.

[⌊Clean Up: every item explained, with a preview.⌉⌊Clean Up: every item explained,
with a preview.⌉[

Clean Up: every item explained, with a preview.

[⌊Tables with their owners.⌉⌊Tables with their owners.⌉[

Tables with their owners.

[⌊Options and autoload.⌉⌊Options and autoload.⌉[

Options and autoload.

[⌊History with one-click restore.⌉⌊History with one-click restore.⌉[

History with one-click restore.

## Installation

 1. Install the plugin from **Plugins  Add New**, or upload the zip.
 2. Activate it. You land on **Tools  Database Cleaner**.
 3. Click **Check my database**, then **Clean now**.

## FAQ

### Can I undo a cleanup?

Yes. Open History and click Restore. The removed rows, tables, options or scheduled
tasks are put back. Backups are kept for 30 days (you can change this in Settings).

### Where are the backups stored?

In a private folder in your uploads folder (`uploads/reinvent-database-cleaner/`)
with a random name, protected from web access. They’re compressed and removed automatically
when they expire.

### How do you know which plugin a table or option belongs to?

We read the PHP files of WordPress, your plugins and your theme on your server and
look for the names they use, including names built from a plugin’s prefix. A name
that nothing installed uses is marked “No installed plugin”. It’s very likely a 
leftover, but check it before you remove it. The backup lets you put it back if 
you were wrong.

### Why can’t I remove a table from the browser?

Tables over 20 MB are too big to back up within one page request on many hosts. 
Use WP-CLI instead: `wp db-cleaner drop-table <name>`.

### What happens when I delete the plugin?

Your settings, history and backups are kept, so you can still restore after installing
it again. To remove everything, switch to Advanced mode and turn on “Remove all 
Database Cleaner data” in Settings before you delete the plugin.

### Does it work on multisite?

It works on the site you’re on, with that site’s tables. Network-wide tables are
treated as WordPress tables and never removed.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Reinvent Database Cleaner” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Reinvent WP ](https://profiles.wordpress.org/reinventwp/)

[Translate “Reinvent Database Cleaner” into your language.](https://translate.wordpress.org/projects/wp-plugins/reinvent-database-cleaner)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/reinvent-database-cleaner/),
check out the [SVN repository](https://plugins.svn.wordpress.org/reinvent-database-cleaner/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/reinvent-database-cleaner/)
by [RSS](https://plugins.trac.wordpress.org/log/reinvent-database-cleaner/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * New: describe a problem with your site on the Reinvent WP  Dashboard page or 
   on this plugin’s page, and the assistant suggests the Reinvent WP app that fixes
   it.
 * New: the Reinvent WP  Dashboard page shows your Reinvent WP apps first, then 
   the others you can install, from an up-to-date list (read once a day, with a 
   built-in list as fallback).
 * The admin page now sends a short site report (site address, admin email, plugin
   version and settings) to help us improve the plugin and debug reported errors.
   See External services in the readme.

#### 1.0.2

 * Every database query is written in full with placeholders.
 * Restoring a removed table checks that its saved structure was not changed.

#### 1.0.1

 * Readme: clearer description.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.0.3**
 *  Last updated **2 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [autoload](https://wordpress.org/plugins/tags/autoload/)[clean database](https://wordpress.org/plugins/tags/clean-database/)
   [database cleaner](https://wordpress.org/plugins/tags/database-cleaner/)[optimize database](https://wordpress.org/plugins/tags/optimize-database/)
   [revisions](https://wordpress.org/plugins/tags/revisions/)
 *  [Advanced View](https://wordpress.org/plugins/reinvent-database-cleaner/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/reinvent-database-cleaner/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/reinvent-database-cleaner/reviews/)

## Contributors

 *   [ Reinvent WP ](https://profiles.wordpress.org/reinventwp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/reinvent-database-cleaner/)