In wp-config.php, add the following:

define ('EMPTY_TRASH_DAYS', 7);

“7” refers to the number of days after which the rash should be deleted automatically.

 

Source: http://www.dwuser.com/education/content/10-steps-to-a-faster-wordpress/