RT shred and cron jobs

Hello All,

We have a requirement to shred old tickets which are more than a year.

we have to set up cron job every night.

Can someone help , how do i proceed with this request

If you figure out your rt-shredder CLI line you can just schedule that command as a cronjob, ex:

sbin/rt-shredder --plugin 'Tickets=query,id>123;limit, 100'