Title: SpeedX Database Cleaner
Author: SpeedX
Published: <strong>October 21, 2026</strong>
Last modified: October 21, 2026

---

Search plugins

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

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

# SpeedX Database Cleaner

 By [SpeedX](https://profiles.wordpress.org/roicecz/)

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

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

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

## Description

**SpeedX Database Cleaner keeps database cleanup simple.** It does one job: helps
you inspect and manually remove selected unwanted records from your WordPress database.

No complicated dashboard. No caching, image optimization, minification, marketing
features or background cleanup jobs. The interface is intentionally minimal, practical
and focused on the task at hand. The code is designed to stay small and straightforward,
without unnecessary dependencies or system overhead.

The plugin does not create its own database tables or persist its settings. Cleanup
is initiated manually by an administrator; nothing is scheduled to run automatically.

Before making changes, you can see how many records are eligible for each cleanup
operation and an **approximate size of the selected data**. These estimates are 
not a guarantee of disk space recovered, because database storage and table allocation
work differently.

**Important: This plugin does not back up your database. Cleanup permanently deletes
data. Always make a verified database backup before running it.** Some WordPress
deletion operations also remove related records through the standard WordPress APIs.

**Languages:** English and Czech (cs_CZ). The interface follows your WordPress site
language where the translation is available.

### Features

 * **Revision cleanup:** Keep a configurable number of the latest regular revisions
   per post (default: 5); autosaves are excluded.
 * **Old auto-drafts:** Remove automatic drafts older than seven days, leaving recent
   drafts untouched.
 * **Spam comments:** Permanently delete comments marked as spam.
 * **Trashed comments:** Permanently delete comments in the trash.
 * **Unapproved comments:** Optionally remove comments awaiting approval.
 * **Expired transients:** Remove expired regular WordPress transients.
 * **Trashed posts and pages:** Optionally delete standard posts and pages in the
   trash. Attachments and custom post types are excluded from direct selection.
 * **Clear statistics:** Display eligible record counts and approximate data sizes
   before cleanup.
 * **Refresh button:** Recalculate statistics after changing the number of revisions
   to keep, without starting cleanup.
 * **Manual control:** Choose the cleanup categories and explicitly confirm that
   you have made a backup.
 * **On-screen results:** See a summary after cleanup, with optional logging to 
   the WordPress debug log when enabled.

## Screenshots

[⌊The minimal database cleanup screen, showing eligible record counts, estimated
data sizes, revision retention and manual cleanup controls.⌉⌊The minimal database
cleanup screen, showing eligible record counts, estimated data sizes, revision retention
and manual cleanup controls.⌉[

The minimal database cleanup screen, showing eligible record counts, estimated data
sizes, revision retention and manual cleanup controls.

## Installation

 1. Upload the plugin files to `/wp-content/plugins/speedx-database-cleaner/` or install
    it through the WordPress Plugins screen.
 2. Activate **SpeedX Database Cleaner**.
 3. Open **Tools > SpeedX Database Cleaner** in the WordPress administration area.
 4. Review the statistics, select the cleanup categories and set how many revisions
    to keep.
 5. **Back up your database before proceeding.** Confirm the warning and run the selected
    cleanup operations.

## FAQ

### Does the plugin create a database backup?

**No. Absolutely not.** SpeedX Database Cleaner does not create, store or download
database backups. We strongly recommend creating and verifying a complete database
backup before every cleanup. Use your hosting backup tools or a dedicated backup
solution.

### Does the plugin make irreversible changes to the database?

**Yes.** The plugin permanently deletes selected database records. These operations
cannot be undone by the plugin. WordPress deletion APIs may also remove related 
metadata, comments and revisions. Restore from your backup if you need to recover
deleted data.

### Has the plugin been tested?

**Yes.** SpeedX Database Cleaner has undergone more than four months of testing 
on different WordPress websites and has evolved substantially during that period.
As with any database maintenance tool, we still recommend testing on a staging site
and making a backup before using it on a live website.

### Does the plugin run automatically or store settings?

No. Cleanup is manual. The plugin does not schedule cleanup jobs, create custom 
database tables or save its configuration between visits. The interface deliberately
stays simple and functional.

### What does the estimated data size mean?

It is an approximation based on the data eligible for cleanup, not a measurement
of the disk space that will actually be released. Deleting records does not necessarily
reduce the physical size of database files.

### How many revisions does the plugin keep?

By default, it keeps the five most recent regular revisions for each post. You can
change that number before cleanup. Autosaves are excluded from revision cleanup.

### What happens to recent automatic drafts?

Automatic drafts newer than seven days are not selected for cleanup, helping protect
work in progress.

### What does “Trashed posts and pages” delete?

This option is unchecked by default. It permanently deletes only standard WordPress
posts and pages with the trash status. Counts, estimated sizes, selection and the
final check before deletion use the same status and post type criteria.

Attachments, custom post types and other content types are excluded from this operation’s
direct selection. Standard WordPress deletion hooks may still remove related data;
this is normal WordPress API behavior.

### Which languages are available?

English and Czech (cs_CZ).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ SpeedX ](https://profiles.wordpress.org/roicecz/)

“SpeedX Database Cleaner” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/speedx-database-cleaner/contributors)
for their contributions.

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

### Interested in development?

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

## Changelog

#### 0.1.8

 * Added: “Go clean” link to the plugin action links in the WordPress Plugins list
   for quick access to the database cleaner.

#### 0.1.7

 * Fixed: Derive transient value names by removing only the leading timeout prefix.
   Recheck expiration, delete values before timeouts through the WordPress options
   API, and count only completed cleanup operations.
 * Improved: Verify the action nonce before processing form settings and recheck
   permissions and the cleanup nonce at the cleanup entry point. Rendering and cleanup
   receive validated form values.
 * Improved: Restrict cleanup helpers to supported post and comment statuses, prepare
   complete post queries at execution, and recheck comment status before permanent
   deletion.

#### 0.1.6

 * Added: English source strings and complete Czech translations for the administration
   interface, messages, cleanup results and plugin description.
 * Improved: The revision retention sentence supports plural forms and keeps its
   input field inside one translatable sentence.
 * Updated: Czech PO/MO catalogs and the POT template, with source references and
   translator notes. Cleanup behavior is unchanged.

#### 0.1.5

 * Changed: Rename the trash category to “Trashed posts and pages” and restrict 
   its statistics, selection and pre-deletion checks to the post and page types 
   with the trash status.
 * Clarified: Attachments and custom post types are excluded from direct selection,
   while WordPress deletion hooks may remove related data. The option remains unchecked
   by default.

#### 0.1.4

 * Added: A separate Update action refreshes statistics and preserves selected cleanup
   options without requiring backup confirmation or running cleanup.
 * Fixed: Validate the revision retention count on the server so invalid input cannot
   be interpreted as zero or authorize cleanup.
 * Improved: Revision statistics use database aggregates instead of loading all 
   revision IDs into PHP. Comment statistics use one grouped query; expired transient
   statistics use one query for both count and size.
 * No database cache, settings, browser storage or cookies are added.

#### 0.1.3

 * Changed: Prefix the main class with SPX4DBC_ and plugin form fields and nonce
   identifiers with spx4dbc_ to reduce naming conflicts.

#### 0.1.2

 * Fixed: Only remove automatic drafts older than seven days, using the same age
   limit for statistics and cleanup.
 * Fixed: Exclude autosaves from revision statistics and cleanup, and retain the
   selected number of latest regular revisions per post.
 * Fixed: Recheck record eligibility and retained revisions before deletion, and
   use the WordPress revision deletion API.

#### 0.1.1

 * Fixed: Escape the transient timeout prefix in statistics and cleanup queries 
   to prevent matching unrelated database options.

#### 0.1.0

 * Initial release.

## Meta

 *  Version **0.1.8**
 *  Last updated **1 week ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.8 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Czech](https://cs.wordpress.org/plugins/speedx-database-cleaner/) and [English (US)](https://wordpress.org/plugins/speedx-database-cleaner/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/speedx-database-cleaner)
 * Tags
 * [database](https://wordpress.org/plugins/tags/database/)[database cleanup](https://wordpress.org/plugins/tags/database-cleanup/)
   [optimization](https://wordpress.org/plugins/tags/optimization/)[revisions](https://wordpress.org/plugins/tags/revisions/)
   [transients](https://wordpress.org/plugins/tags/transients/)
 *  [Advanced View](https://wordpress.org/plugins/speedx-database-cleaner/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ SpeedX ](https://profiles.wordpress.org/roicecz/)

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/speedx)