The Duplicate and Auto Draft Cleaner plugin helps maintain a clean and efficient WordPress database by automatically removing auto-drafts and identify …
Duplicate and Auto Draft Cleaner helps WordPress site owners keep the database cleaner by removing stale drafts, finding duplicate posts, and giving admins safer cleanup controls before anything is deleted.
Why site owners use it
When drafts pile up and duplicate posts slip into a site, the admin area becomes harder to manage and content cleanup becomes risky. This plugin focuses on a simple workflow:
- Review drafts and duplicates from one settings screen.
- Filter what you want to clean before taking action.
- Confirm manual deletions before they run.
- Track recent cleanup activity for better transparency.
- Automate repeat cleanup tasks on a schedule.
Key features
- Remove old
draft and auto-draft posts manually or automatically.
- Detect duplicate posts and pages based on matching titles within the selected post type and status filters.
- Move drafts and duplicate posts to Trash or permanently delete them, depending on your settings.
- Review the last 20 cleanup actions in the activity log.
- Confirm manual delete actions before cleanup starts.
- Run cleanup every 5 minutes, hourly, twice daily, daily, weekly, or monthly.
- Limit cleanup by post type and duplicate status filters.
- See the last successful automated draft and duplicate cleanup times from the settings screen.
What you can manage
-
Draft Cleaner
Clean old drafts by age, choose allowed post types, and decide whether selected drafts go to Trash or are permanently deleted.
-
Duplicate Cleaner
Review duplicate content, filter by post type and post status, then move selected duplicates to Trash or delete them permanently.
-
Automation
Enable scheduled draft cleanup and scheduled duplicate cleanup separately from the plugin settings page.
-
Cleanup Activity Log
See the latest cleanup actions with date, cleanup type, and number of items deleted.
Safe cleanup workflow
The plugin is designed to reduce accidental data loss:
- Manual cleanup actions show a confirmation dialog before deletion.
- Draft cleanup can be routed to Trash instead of permanent deletion.
- Recent cleanup history stays visible in the activity log.
Support
For support, bug reports, or feature requests, please visit:
https://mkaion.com/duplicate-and-auto-draft-cleaner
Credits
Plugin developed by Mainul Kabir Aion.
FAQ
Q: Will this plugin delete posts or pages permanently?
A: Yes, if you choose “Delete Permanently” as your deletion strategy, the drafts and duplicate posts will be deleted permanently. By default, the duplicates are deleted permanently and drafts are moved to the trash. Be careful when selecting options and deleting posts.
Q: Can I schedule automated duplicate removal?
A: Yes, under the “Settings” tab, you can enable the automation and set a frequency for automatic duplicate removal.
Q: What happens if I change my theme?
A: The default styles will be lost. For this reason, the plugin is using its own stylesheet.
Q: The plugin isn’t working after I updated it. What should I do?
A: If the plugin is not working after updating to a new version, please deactivate and reactivate it.
Q: Where are the settings stored?
A: The settings are stored in the wp_options database table.
ChangeLog
1.4.2
* Minor fixes.
1.4.1
- Fixed the issue where the script was not correctly enqueued and the select all checkbox was not working.
- Implemented more unique prefixes for functions and options to avoid conflicts with other plugins.
1.4.0
- Fixed the issue where 5 minutes cron job was not working for auto draft and duplicate remover.
- Added a custom cron schedule for 5 minutes.
- Updated the settings to support 5 minutes for automation.
- Enhanced the
schedule_auto_draft_cleanup and schedule_auto_duplicates_cleanup functions to support the 5-minute cron job.
- Improved the code structure for better maintainability..
1.3.1
- Fixed the issue where the settings page was cluttered.
- Changed the help texts to italic format.
- Added help text as tooltips or beside the options instead of below them.
1.3.0
- Enhanced UI and added help text to the settings page.
- Resolved issues where the duplicate tab count was showing error and the post status was not showing.
- Improved code quality and security.
- The Plugin is now fully working and tested.
1.2.4
- Addressed the fatal error in
render_duplicates_tab by fixing count argument.
- Enhanced the duplicate status selection.
1.2.3
- Fixed the fatal error in
render_settings_tab by properly using in_array.
- Code refactor for better maintainability.
1.2.2
* Fixed the `in_array` error in `render_settings_tab`
* Improved code security.
1.2.1
* Fixed the Post Type filter on Draft tab.
* Resolved critical error on the duplicate tab.
* Fixed Post Status not showing on Settings page.
* Resolved Automation settings not showing.
1.2.0
* Added "Filter by Time" on the drafts tab with "Most Recent" option
* Added multi select filter for post type on draft tab.
* Added multi select filter for post type and post status on the duplicate tab.
* Added multi select checkboxes for post types on settings.
* Added multi select dropdown for post status on settings.
* Automation settings are visible now with more automation frequency options.
1.1.0
* Added Draft listing to the Drafts tab with columns for title, creation date, and post type.
* Added draft count on the draft page.
* Added date filter with several options to filter drafts.
* Added checkboxes for selecting and deleting drafts from the list.
* Added a dropdown for "Delete Permanently" or "Move to Trash"
* Added more options to duplicate remover automation frequency: 5 minutes, hourly, twice a day, daily, weekly, and monthly.
* Retain Draft Original Titles when moving to trash.
* Improved the efficiency and readability of the code.
* Added comments for better understanding.
* Sanitized input data.
1.0.0
* Initial Release