Allot of WordPress users never empty their trash, what could result in a large amount of trashed posts. Since you’ll probably never use these posts again, we can let WordPress delete them automatically after a certain amount of days. We can enable this feature by adding the following line of code to our wp-config.php file.
define( 'EMPTY_TRASH_DAYS', 30 );
This example sets WordPress to automatically delete trashed posts after 30 days. We can also completely disable the trash feature, to do so add the following code to your wp-config.php.
define('EMPTY_TRASH_DAYS', 0 );
When we completely disable the trash the label for deleting a post will change from “(Move to) Trash” to “Delete Permanently”.