The snippet will let you delete trash on daily basis automatically.

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