Set the number of days to purge items marked as trash in the database. This will happen every 5 days. You can change the 5 to any number such as 7 days for weekly and 30 days for monthly.
How to Setup Snippet
Place the code in the wp-config file
define( 'EMPTY_TRASH_DAYS', 5 );