Automatically empty wordpress Trash
May 25, 2010 · Print This Article
Trash is a new functionality from WordPress 2.9. When an item (post, comment, etc) is deleted, it goes in Trash instead of being permanently removed. Here is a tip to tell your WordPress blog to autmatically empty trash every X days.
Simply open your wp-config.php file (located at the root of your WOrdPress install) and paste the following code:
define('EMPTY_TRASH_DAYS', 10 );
The second parameter is when to empty trash, in days.