The following snippet will let you delete trash on daily basis in WordPress.

Note: Make sure that you do replace 1 by X to empty spam comments automatically every X days.