delete all the files in the current folder which end with ".bak" or ".backup" and which have not been accessed in the last 30 days
find . ( -name '*.bak' -o -name *.backup ) -type f -atime +30 -exec rm '{}' ;