Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Remove or Disable Trash feature in WordPress 2.9

Hello Friends,

Are you looking to Remove Trash feature in wordpress 2.9 ? In WordPress 2.9, you can see new feature which allows you to Trash a post instead of deleting it. In previous version of wordpress, it was Delete instead of Trash. Once you Trash the post, you have delete the post manually. This Trash feature will make your database larger.

Posts will be stored in Trash till 30 days by default. If you would like to reduce the time than add below line to wp-config.php file.

define('EMPTY_TRASH_DAYS', 10);

Once you write above line in wp-config.php, Trash post will be deleted after 10 days instead of 30 days.   

If you don't want the trash feature anymore, you can disable it permanently. If you want to do the same than add below line in wp-config.php file.

define('EMPTY_TRASH_DAYS', 0);

Once you will write above line in wp-config.php, it will show Delete Permanently instead of Trash.

Thats it.

If you find any problem in this than let me know by comment.

To know more about programming,JavaScript issues,jQuery,Expression Engine,MYSQL database and Open-source, enter your email address below. We will send you free tutorials.

Enter your email address:
Feel free to ask any question. Just leave your comment below and we will answer your comment with in 24 hours.


  • xavier

    Thank you, this feature is important when you need to build a community ant the users are able to see each other posts in the trash can, even Administrator deleted posts!. It worked for me.

  • xavier

    it has been a year since my last comment about this feature and it still works. thank you!.

Leave a Reply

Your email address will not be published.