Cron/ssh to remove folders older than X days

Does anyone know how to modify this code, so it automaticly deletes files without having to confirm each one?

I have a few thousand files I need deleted and don’t feel like pushing y that many times.


# this should remove files older than 2 days.
find /path/to/data/ -name '*' -type f -mtime +2 -exec rm -v -r -i {} \\;

I’m kinda new to ssh commands, i just took the -v -r -i and it worked… sorry for useless thread

No probs. We didn’t have to do anything and that’s the job I like :stuck_out_tongue: