Title: Auto Prune Posts
Author: ramon fincken
Published: <strong>октомври 31, 2010</strong>
Last modified: ноември 11, 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/auto-prune-posts.svg)

# Auto Prune Posts

 By [ramon fincken](https://profiles.wordpress.org/ramon-fincken/)

[Download](https://downloads.wordpress.org/plugin/auto-prune-posts.3.1.1.zip)

 * [Details](https://mk.wordpress.org/plugins/auto-prune-posts/#description)
 * [Reviews](https://mk.wordpress.org/plugins/auto-prune-posts/#reviews)
 *  [Installation](https://mk.wordpress.org/plugins/auto-prune-posts/#installation)
 * [Development](https://mk.wordpress.org/plugins/auto-prune-posts/#developers)

 [Support](https://wordpress.org/support/plugin/auto-prune-posts/)

## Description

Auto deletes expires (prunes) posts or pages after a certain amount of time. On 
a per category basis (single category, or all at once).
 Handy if you want to have
posts with a limited timeframe such as offers, coupons etc.. Posts will auto delete
on a per category basis: single category OR all categories at once. All (custom)
post types are supported. (CPT support) Will also trash post attachments. Sends 
notification to site admin (can be turned off). No cronjob needed 🙂

 * Coding by: [MijnPress.nl](https://www.mijnpress.nl) [Mastodon profile](https://mastodon.social/@ramonfincken)
   [More plugins](https://profiles.wordpress.org/ramon-fincken/)
 * Idea by [Nostromo.nl](https://www.nostromo.nl)

Donate [https://donate.ramonfincken.com/](https://donate.ramonfincken.com/)

## Screenshots

 * [[
 * Start overview
 * [[
 * All options, you can update or delete each setting
 * [[
 * Advanced options

## Installation

 1. Upload directory `auto_prune_posts` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit Plugins menu to configure the plugin.

## FAQ

### I have a lot of questions and I want support where can I go?

[https://pluginsupport.mijnpress.nl/](https://pluginsupport.mijnpress.nl/) or drop
me a tweet to notify me of your support topic over here.
 I always check my toots,
so mention my name with https://mastodon.social/deck/@ramonfincken and your problem.

## Reviews

![](https://secure.gravatar.com/avatar/8f8af7737bed19c14abafa215c3ee01d1d24961649b32dc80df7d70fca5a1513?
s=60&d=retro&r=g)

### 󠀁[Reliable way to delete old posts](https://wordpress.org/support/topic/reliable-way-to-delete-old-posts/)󠁿

 [mquiggeorgia](https://profiles.wordpress.org/mquiggeorgia/) август 21, 2024

This plugin works well to automatically delete old posts on a schedule. We use it
to remove everything 2 years old and over to keep website from getting bogged down
with stale posts. Thank you!

![](https://secure.gravatar.com/avatar/88841e7ace4946b2f7ff420167e9dd64d1e7a9c2b7d67b2b7ca11012ee37ce86?
s=60&d=retro&r=g)

### 󠀁[Works fine on WP 6.1.1](https://wordpress.org/support/topic/works-fine-on-wp-6-1-1/)󠁿

 [Bat n Ball](https://profiles.wordpress.org/bat-n-ball/) декември 6, 2022 1 reply

I realise this plugin hasn’t been updated for a while but I just wanted to say it’s
great and works well on the most recent version of WordPress. At the time of writing,
that was 6.1.1 Cheers 👍

![](https://secure.gravatar.com/avatar/fc7dbc1dc99c3fc141775d5dbcff800b75de11cd18d0df521ea9570e94cdf0c7?
s=60&d=retro&r=g)

### 󠀁[Throws errors on activation.](https://wordpress.org/support/topic/throws-errors-on-activation/)󠁿

 [kenrichman](https://profiles.wordpress.org/kenrichman/) октомври 7, 2019

Needs to be updated; too many errors thrown. Hopefully this will be attended to 
as it’s a really useful plugin otherwise.

![](https://secure.gravatar.com/avatar/0d275c243c924c38760d6a018cc1215b497ecf9f88ba3e8a3d4f6f03d5fb544f?
s=60&d=retro&r=g)

### 󠀁[Good Job](https://wordpress.org/support/topic/good-job-887/)󠁿

 [khizaralikhan](https://profiles.wordpress.org/khizaralikhan/) јуни 17, 2018

Works Perfectly no errors faced yet

![](https://secure.gravatar.com/avatar/50c101f4d9be877802d44713e653b7ee3306990c73a8daa836608bfa2bf2dcba?
s=60&d=retro&r=g)

### 󠀁[Lifesaver!](https://wordpress.org/support/topic/lifesaver-121/)󠁿

 [angeljs](https://profiles.wordpress.org/angeljs/) мај 3, 2018

Thank you for this plugin, it’s saved me a lot of time, trouble and space!

![](https://secure.gravatar.com/avatar/efa3c860086ecadd363372d33cbaaee6f7d8c9e490a6f1314c1e2dfd8b39426e?
s=60&d=retro&r=g)

### 󠀁[the one that works](https://wordpress.org/support/topic/the-one-that-works-2/)󠁿

 [arroyo2](https://profiles.wordpress.org/arroyo2/) август 5, 2017

finally found the one that’s working

 [ Read all 10 reviews ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/)

## Contributors & Developers

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

Contributors

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

[Translate “Auto Prune Posts” into your language.](https://translate.wordpress.org/projects/wp-plugins/auto-prune-posts)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/auto-prune-posts/),
check out the [SVN repository](https://plugins.svn.wordpress.org/auto-prune-posts/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/auto-prune-posts/)
by [RSS](https://plugins.trac.wordpress.org/log/auto-prune-posts/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.1.1

Bugfix: Re-added the framework

#### 3.1.0

Change: Removed &prune=true GET option to force run prune using wp-admin as it is
false-positively flagged ads CSS by pathstack. Now using a form post button.

#### 3.0.0

Bugfix: XSS in POST types

#### 2.0.0

Bugfix: Added nonces for admin forms (CSRF)
 Bugfix: PHP 8 compatibility

#### 1.8.0

Bugfix: PHP 8 compatibility

#### 1.7.0

Bugfix: Menu conflict with bbpress due to permissions

#### 1.6.6

Bugfix: Removed PHP notices
 Added: Settings for max deletes per run, and amount
between runs

#### 1.6.5

Added: max of 600 deletes per call, 300 sec delay

#### 1.6.4

Bugfix: Changed the init after WP rewrite, due to errors with W3 total cache

#### 1.6.3

Bugfix: Better hook (plugins_loaded instead of wp) 
 Added: Earlier flush and 20
seconds timeout

#### 1.6.2

Bugfix: All categories now shown when saved

#### 1.6.1

Bugfix: All categories

#### 1.6

Added: All categories support
 Bugfix: Only get latest 50 posts (performance fix),
every 30 seconds Changed: Dropdown now on category name (sort)

#### 1.5

Bugfix: Framework did not work on multisite, is_admin() problem.
If anyone could
help me with that ? 🙂

#### 1.1

Second release
 Added: Custom post type support Added: Trash OR force delete option
Added: Mail admin if post is deleted Changed: Init method is now every 30 seconds,
all posts are checked. Added: If you add &prune=true in your admin plugin page the
plugin will run manually (force run)

#### 1.0

First release

## Meta

 *  Version **3.1.1**
 *  Last updated **5 месеци ago**
 *  Active installations **1.000+**
 *  WordPress version ** 2.3 or higher **
 *  Tested up to **6.8.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/auto-prune-posts/)
 * Tags
 * [clean](https://mk.wordpress.org/plugins/tags/clean/)[delete](https://mk.wordpress.org/plugins/tags/delete/)
   [expire](https://mk.wordpress.org/plugins/tags/expire/)[mass](https://mk.wordpress.org/plugins/tags/mass/)
   [prune](https://mk.wordpress.org/plugins/tags/prune/)
 *  [Advanced View](https://mk.wordpress.org/plugins/auto-prune-posts/advanced/)

## Ratings

 4.2 out of 5 stars.

 *  [  7 5-star reviews     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/auto-prune-posts/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/auto-prune-posts/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/auto-prune-posts/reviews/)

## Contributors

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/auto-prune-posts/)