Clean-up Your WordPress Trash

The WordPress Trash system is set to recycle items by default every 30 days but you can easily change this value.

You can set amount of days by adding one line to your wp-config.php file.

Here we set the trash to empty itself after 7 days.

define(‘EMPTY_TRASH_DAYS’, 7 );

Have you got any quick WordPress tips?

Was this article helpful?

Keep In Touch


Wil is a dad, WordPress consultant, WordPress developer, business coach and mentor. He co-organizes the WordPress Sydney meetup group and has been on the organising committee for WordCamp Sydney since 2014. He speaks at many special events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.