This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Auto Delete Posts


The Auto Delete Posts plugin can be used to delete all posts after an expiration date has elapsed. It is also
possible to move all posts to a single category after expiration. Disabling the plugin will provide
a preview of posts that will be deleted or moved.

Note: Please read the installation instructions for latest changes


  • v0.3 work from Mani Monajjemi (
  • v0.6 work from Phil Guier (


First time

  1. Go to ‘Settings->Auto Delete Posts’ to view the current configuration.
  2. Modify options, enable plugin and UPDATE.

You’re done.

Upgrade (pre v1.2)

  1. Update the plugin, activate, deactivate and re-activate the plugin to remove configuration from previous versions.
  2. Choose the appropriate action and set the expiration days.

Upgrade (post v1.2)

  1. Upgrade the plugin.
  2. Choose the appropriate action and set the expiration days.

If everything looked good, you’re done.


Q-1) How do I use this plugin?
A-1) The Auto-Delete-Posts plugin will be run each time a new post or page is created or when an existing post or page is edited.

Q-2) Why is there a delay after submitting a new post or editing an existing one?
A-2) If you have a large number of posts that need to deleted/moved, this will slow things down. If you find you end up having to delete/move a lot of posts, then change the expiration days to a smaller values so that older posts are deleted more often and speeding things up.

Q-3) I upgraded to a version after v1.1 and the plugin doesn’t delete, move or perform any action?
A-3) Starting with v1.1, I fixed the way the options were being saved (they weren’t before, a bug that didn’t break anything). Due to this change, it is required to properly go and select the categories for each of the Delete, Move or Add actions of the plugin and then the actions should work as they’ve had before.


There are no reviews for this plugin.

Contributors & Developers

“Auto Delete Posts” is open source software. The following people have contributed to this plugin.


Translate “Auto Delete Posts” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • UPDATE: Updated to work with latest version of WP
  • BUG FIX: Moved per-post expiration box to the right of the post screen


  • FEATURE: Bypass the trash can when deleting posts in WP >= 2.9.0


  • BUG FIX: Enable the Delete or Move Plugin Action when using Per Post settings


  • FEATURE: Allow for per post expiration in addition to site wide currently supported.
  • FEATURE: Allow for deletion from multiple categories


  • MESSAGE: Warn on Preview window when no Move, Delete or Add category is selected. Only affects upgrading users


  • FEATURE: Allow adding new categories to existing posts
  • BUG FIX: Properly save the settings on each load.


  • BUG FIX: Fix the immediate delete/move hooks being out of scope


  • REWRITE: A full rewrite of the plugin to be more modular


  • BUG FIX: Make both the Update Options button do the right thing.
  • BUG FIX: The Preview now only shows the chosen category, if any, or all categories
    if none chosen.


  • BUG FIX: Use more of the WP API and avoid issues of missing database tables.
  • BUG FIX: For WP 2.1.2. Fix the SQL query to exclude cat_ID 1 and 2 from showing up in
    the delete or move options.


  • BUG FIX: For WP 2.1.2. Fix the SQL query to exclude “Pages” from being deleted.


  • BUG FIX: Properly handle deleting posts from ALL categories.
  • BUG FIX: Fix the SQL query when deleting posting from a particular category to not
    summarily delete ALL posts!


  • FEATURE: Added option to delete posts from a particular category.


  • BUG FIX: Incorrect Terminate in functions
  • FEATURE: Instant DELETE/MOVE ability


  • BUG FIX: Modified SQL query to not delete pages.
  • FEATURE: Added option to move posts to a particular category instead of deleting them.


  • INITIAL: Initial version.