DWV Database Bloat Cleaner
Safely delete post revisions, auto-drafts, expired transients, and orphaned meta to speed up your site and shrink backups.
Install in
Over time, your WordPress database accumulates orphaned metadata, expired transients, auto-drafts, and post revisions that slow down server response times and bloat your backups. DWV Database Bloat Cleaner is a lightweight, backend-only utility that identifies and removes this clutter without loading anything on your frontend.
It does one thing: it cleans your database tables with narrow, WordPress-native queries and secure AJAX execution, and it shows you exactly what it found before it deletes anything.
Features
- Post Revisions: Bulk-remove post and page revisions that were last modified more than 24 hours ago. Recent revisions, including editor autosaves, are left alone.
- Auto-Draft Removal: Clear auto-drafts older than 7 days. Fresh auto-drafts from posts you are currently writing are not touched.
- Expired Transients Sweep: Purge expired cache data left behind by plugins and themes, including expired site transients stored in the options table.
- Orphaned Post Meta Cleanup: Purge meta keys and values that no longer belong to any existing post.
- Scan Before You Delete: See the number of removable items per type before running the cleanup.
- Chunked Deletes: Each run removes up to 5,000 rows per type, so shared hosting is not overloaded. If more remain, the screen tells you to run it again.
Want it on autopilot?
DWV Database Bloat Cleaner PRO adds automated scheduled cleanups (hourly, daily, weekly or monthly) and safe background chaining, which works through large sweeps in sequential WP-Cron batches without timeouts or lockups. Learn more at https://digitalwebverse.com/
Notes
- Always take a database backup before bulk deletions.
- On multisite, the plugin works on the current site’s tables. Network-wide site transients, which WordPress stores in the network meta table, are not covered.
- If the PRO edition is active, this free edition pauses itself so the two never run side by side.
Written by Joobi from the project's own listing. See the source page
1.1.1
- Fix: Deletes now run in chunks of up to 5,000 rows per type, instead of one unbounded query.
- Fix: Revisions modified in the last 24 hours are no longer deleted, which protects editor autosaves.
- Fix: Auto-drafts are only deleted once they are older than 7 days, matching WordPress core.
- Fix: Expired site transients in the options table are now included.
- Fix: Completion message is accurate. It no longer reports success while items remain.
- Fix: Last-cleanup time is displayed with the site timezone.
- Fix: Pauses cleanly, with a notice on the Plugins screen, when the PRO edition is active.
- Fix: Output escaping, safer prepared queries and PHP 8 warning clean-ups.
- New: Uninstall cleanup removes the plugin option.
- UI: Aligned heading icon, right-aligned counts, consistent button styling and a responsive layout.
1.1.0
- UI improvements: Added native WordPress postboxes and database size tracking.
- Moved inline JavaScript to a dedicated enqueued file.
1.0.0
- Initial release.
- Added safe cleanup for post revisions, auto-drafts, expired transients, and orphaned post meta.
- Implemented dry-run admin dashboard with secure AJAX execution.
Follow this listing's changes (Atom feed)