WordPress Database Cleaner: Inspect, Clean and Maintain Your Database
WPCodeForge Database Cleaner shows you what is inside your WordPress database and lets you remove clutter you have reviewed, such as old revisions, auto-drafts, spam comments, orphaned metadata and expired transients. No phpMyAdmin and no SQL required.
Needs WordPress 6.4+ and PHP 8.0+. Nothing is deleted until you confirm it.
A clearer view of your database, and tools to tidy it
Over time a WordPress site collects leftovers: post revisions, auto-drafts, spam comments, expired transients and metadata that no longer belongs to anything. This plugin helps you find them, understand them and remove them on your terms.
Inspect
See your database size and table count, then dig into tables, options, cron events, post meta, user meta, transients and post types.
Clean
Remove items from 15 clean-up categories. Each operation is separate, and you only select what you have reviewed.
Maintain
Optimise tables using the database engine's native operation, manage option autoload settings and remove unwanted cron events.
Will it make my site faster?
Possibly, but we do not promise it. Removing unnecessary data can reduce database size and help with maintenance and backups. Speed also depends on hosting, plugins, theme, caching, queries, images and external services. Treat clean-up as maintenance, not as a substitute for proper optimisation.
How to clean your database safely in 5 steps
Database cleaning is permanent. Follow this routine every time, whether you are a beginner or a developer.
- Back up firstCreate a complete, restorable backup of your site and database.
- Review the OverviewCheck your database size, table count and number of potential clean-up items.
- Open Clean-upRead each category's description and item count before selecting anything.
- Select and confirmTick only reviewed items, then confirm you understand deletions are permanent.
- Check your siteBrowse the front end and dashboard. Try it on a staging site first if you can.
Nothing happens automatically
Installing or activating the plugin deletes nothing. Clean-up only runs when an administrator explicitly requests it. Even so, no tool can know the purpose of every custom database record, so please do not assume that unused-looking data is safe to remove.
Nine tools, one tidy dashboard
Choose a tab to see each screen. Click any screenshot to open it full size, then zoom, drag and browse through all of them.
Overview: your starting point
Get the big picture in seconds and decide where to look first.
- Total database size and table count
- A live count of potential clean-up items
- One-click route into the Clean-up tab
- Counts come from your current database, and nothing runs automatically
Clean-up: review, select, remove
Each category shows what it removes and how many items it found, so you can decide with confidence.
- 15 separate operations, from revisions to oEmbed caches
- A short plain-English description for every category
- A confirmation checkbox before any permanent deletion
Tip: a recent database backup is recommended before every clean-up.
Tables: see where the space goes
Find out which tables are largest and how they are stored.
- Rows, data size, index size and storage engine per table
- View a table's structure and contents
- Optimise using the database engine's native maintenance operation, where supported
Options: spot heavy autoloaded data
Large or autoloaded options can be loaded on every request, so they deserve a closer look.
- Option name, size and autoload status at a glance
- Switch autoload on or off for eligible options
- Delete options you are sure are unused, with critical WordPress options protected
- Shows the first 250 options alphabetically
Be careful: themes and plugins may rely on an option. If you do not know what it does, leave it alone.
Cron Jobs: know what runs and when
Review every scheduled WordPress event in one list.
- Next run time, hook name, schedule and arguments
- Remove an event you no longer need
Be careful: removing an event that WordPress, a theme or a plugin needs can stop that feature from working.
Post Meta: review before you remove
Browse metadata attached to your posts and pages without changing a thing.
- Meta ID, post ID, meta key, size and a value preview
- Read-only view, so it is safe to explore
- Orphaned post meta can be removed from the Clean-up tab
User Meta: see what is stored about accounts
Understand the metadata WordPress and your plugins keep for each user.
- Meta ID, user ID, meta key, size and a value preview
- Read-only view for safe inspection
- Orphaned user meta can be removed from the Clean-up tab
Transients: temporary data, explained
Transients are temporary cached values. WordPress and plugins can recreate many of them.
- Transient name, size and a preview of the value
- Expired transients can be removed from the Clean-up tab
Tip: do not remove active caches unless you understand what they are for.
Post Types: what is registered on your site
See every registered post type, including those added by themes and plugins.
- Name, label, post count and public visibility
- A post type that is not public is not necessarily orphaned
15 clean-up categories, grouped so they are easy to understand
Every category is its own operation, and each shows its item count before you decide.
Posts and pages
- Post revisionsRemoves saved revisions while keeping the current post.
- Auto-draftsRemoves automatically created drafts that were never published.
- Trashed posts and pagesPermanently removes items already in the bin, including custom post types.
Comments
- Pending commentsRemoves comments awaiting moderation.
- Spam commentsPermanently removes comments marked as spam.
- Trashed commentsPermanently removes comments already in the bin.
- Pingbacks and trackbacksTwo separate operations for removing each type.
Orphaned data
- Orphaned post metaMetadata whose parent post no longer exists.
- Orphaned user metaMetadata whose user account no longer exists.
- Orphaned comment metaMetadata whose comment no longer exists.
- Orphaned term metaMetadata whose term no longer exists.
- Orphaned relationshipsTerm relationships pointing to missing posts or terms.
Temporary data
- Expired transientsTemporary cache values that have passed their expiry.
- oEmbed cachesCached responses that WordPress can recreate when required.
Three areas where you should slow down
These tools are powerful. The plugin gives you the information, and you make the final call.
Options
Do not delete an option unless you understand what uses it. Critical WordPress options are protected, but plugin and theme options are not always obvious.
Cron events
Only remove a scheduled event if you know which plugin, theme or WordPress feature created it. Required events keep things like updates and clean-ups running.
Unusual metadata
Custom or unfamiliar metadata may belong to an active plugin. Review it carefully, take a backup and test on a staging site first.
Simple for beginners, useful for experts
If you are new to WordPress
- Every clean-up category explains itself in plain English
- See how many items are affected before you act
- No SQL, no phpMyAdmin and no guesswork
If you manage sites professionally
- Inspect table sizes, engines, indexes and autoload weight quickly
- Audit cron events, metadata and registered post types
- Uses WordPress APIs and the database abstraction layer
Local, private and permission-checked
Runs locally
Core features work inside your WordPress install. No external account or remote service is needed.
Your data stays yours
The plugin does not intentionally send database contents or analytics to WPCodeForge.
Admin only
Administrator capability checks and nonce protection guard every action.
Translation ready
Built with an internationalisation-ready structure, and it tidies up after itself on uninstall.
Install Database Cleaner in about a minute
- DownloadGet the free plugin ZIP file below.
- UploadGo to Plugins → Add New Plugin → Upload Plugin and choose the ZIP.
- ActivateInstall the plugin, then activate WPCodeForge Database Cleaner.
- Open itSelect Database Cleaner in your WordPress admin menu.
- Review, then cleanRead the Overview, back up, and only then run a clean-up.
Database Cleaner Pro
The free plugin covers everyday maintenance. Database Cleaner Pro is the advanced edition for sites that need deeper database ownership detection, automation, analytics, multisite controls and additional optimisation tools.
Frequently asked questions
Will the plugin delete data automatically?
No. Database Cleaner never deletes anything just because it is installed or activated. Every clean-up needs an administrator to select it and confirm.
Should I back up my database first?
Yes. Create a complete, restorable backup before any significant clean-up. Database Cleaner is a maintenance tool and does not replace a backup and restore solution.
Can it make my website faster?
It can reduce database size and help with maintenance and backups, but speed also depends on hosting, plugins, themes, caching, queries, images and external services. We do not guarantee a speed improvement.
Do I need phpMyAdmin or SQL knowledge?
No. Everything is available from inside your WordPress dashboard, so you do not need to write queries.
Can I optimise database tables?
Yes, where your database server supports it. The Tables tab has an Optimise button that uses the database engine's native maintenance operation.
Is it safe to delete options?
Only if you understand what the option is used for. Critical WordPress options are protected, but themes and plugins may rely on other options. Review each one carefully and take a backup first.
Can I remove cron jobs?
Yes, from the Cron Jobs tab. Only remove an event when you know which plugin, theme or WordPress feature created it, because removing a required event can stop that feature from working.
Can I edit or delete post meta and user meta?
The Post Meta and User Meta tabs are for review only. To remove metadata that belongs to deleted posts or users, use the orphaned meta categories in the Clean-up tab.
Does it work with WooCommerce and custom post types?
It works with general WordPress data, and the Post Types tab lists every registered type, including custom ones. The free version has no specialised WooCommerce clean-up, so WooCommerce-specific maintenance may need dedicated tools.
Does it send my database information anywhere?
No. The plugin needs no external account or service, and it does not intentionally transmit your database contents or analytics to WPCodeForge.
Does it support WordPress multisite?
It is designed primarily for standard WordPress installations. Network installs have different database structures, so test on a staging multisite before using it across a network.
More from WPCodeForge
Ready to see what is in your database?
Download WPCodeForge Database Cleaner for free, review your Overview and clean up only what you choose.
