I was trying to do the same with shell, and found it criptic, so Ruby to the rescue.
`find . -name 'CVS'`.each{|dir| system("rm -rf #{dir}")}