Mega Database
Cleanup for WordPress
The most powerful & safe WordPress database cleanup tool. Remove orphaned ACF fields, empty meta rows, revisions, spam, and transients — with real-time preview and automatic snapshots.
Everything You Need for a Clean Database
Built for power users, developers, and agencies managing large WordPress databases.
Health Score Dashboard
Real-time visual representation of your database health. Know exactly how clean your database is at a glance.
Empty / Unused Meta Scanner
Detects empty, null, serialized-empty, or JSON-empty metadata across Post, User, Term, and Comment tables.
ACF Cleanup Engine
Automatically identifies ACF patterns to detect and remove orphan entries. Fully customizable pattern rules.
Safety Vault System
Automatically secures deleted revisions and junk data in a temporary vault so you can recover anything, anytime.
Snapshot Management
Create manual snapshots before cleanup and restore them whenever needed. Full historical backup support.
Real-Time Safe Preview
See exactly what will be deleted before confirming any cleanup. Zero risk of accidental permanent deletion.
Scheduled Cleanup (WP-Cron)
Set it and forget it. Automated daily or weekly cleanup follows all your retention rules and backup settings.
Retention Rules
Keep the latest N meta rows per meta_key (default: 3). Never accidentally remove all data for a key.
Three Steps to a Faster Database
Scan & Analyze
The scanner inspects your entire WordPress database — post meta, user meta, term meta, and comment meta — identifying empty, unused, serialized-empty, and orphaned rows.
Preview Changes
Preview mode shows you every row that will be deleted before you confirm. Enable snapshots to auto-backup before any action. You're always in control.
Clean & Recover
Execute the cleanup with one click. All deleted rows are safely vaulted. If you ever need something back, restore from the Snapshot Manager instantly.
Targeted One-Click Optimization
Each module is laser-focused on a specific source of database bloat.
Post Revisions
Safely remove stale post revisions. Keep only what matters, clear the rest.
Trashed Content
Permanently delete trashed posts and pages that are taking up space.
Spam Comments
Obliterate spam and unapproved comments in a single, safe operation.
Expired Transients
Clear out all expired WordPress transients that pile up over time.
Empty Meta Cleaner
Advanced scanner for null, empty, serialized-empty, and JSON-empty meta values.
ACF Orphan Engine
Pattern-based ACF field detection. Add custom patterns to match any leftover ACF data.
Built for Large-Scale WordPress Sites
-
Optimized SQL Queries Designed for predictable, high-performance operation on databases with millions of rows.
-
Zero Data Loss Guarantee Every deleted row is backed up in the Safety Vault or snapshot table before removal.
-
100% Privacy — No External Calls Your data never leaves your server. No third-party telemetry or tracking.
-
Developer Hooks & Filters Extend or override behavior with
mega_db_cleanup_patterns, retention filters, and action hooks. -
Modular Architecture Version 2.0 is a complete class-based rewrite. Clean, maintainable, and extensible.
Frequently Asked Questions
What's New
- Major Overhaul: Completely redesigned modular class-based architecture
- New: Health Score Dashboard with real-time database diagnostics
- New: User, Term, and Comment metadata cleanup support
- New: Targeted cleanup modules — Revisions, Trash, Spam, Transients
- New: Safety Vault system to temporarily secure deleted data
- New: Metadata Snapshot system for manual backups and restoration
- New: Modern tabbed UI with improved user experience
- Added: Telemetry system for anonymous site optimization diagnostics
- Fixed: PHP compatibility — replaced arrow functions with anonymous functions
- Fixed: Plugin deactivation bug during update process on some servers
- Improved: Better handling of plugin state during version transitions
- Added optional activation popup with email subscription
- Added deactivation feedback popup with 6 selectable reasons
- Plugin now appears as a top-level menu item in WordPress sidebar
- Quick-access link added to the WordPress admin bar
- Empty meta scanner and preview mode
- ACF orphan cleanup with pattern-based detection
- Scheduled automatic cleanup (hourly/daily/weekly)
- Backup table to store deleted meta rows
- Retention rule — keep latest N entries per meta_key
- One-click delete all empty metadata
- Fully optimized SQL cleanup with jQuery admin UI
Ready for a Faster WordPress Site?
Join thousands of WordPress site owners who trust Mega Database Cleanup to keep their databases lean, fast, and safe — for free.
Free forever · GPLv2 License · No credit card required