what is a purpose of your experiment (RT-qPCR, NGS or something other)? Two years old RNA could be very low quality if frozen only to -20°C. If was frozen to -80°C, should be still fine and you can use DNAse to get rid of DNA from your samples. In any case I would recommend to check RNA integrity (agarose gel electrophoresis or some microfluidic method like Bioanalyzer) before starting downstream analyses.
I agree with Martin. If you still have quality RNA then you can for sure DNase treat it. I've had great luck with the NEB DNase to clean up samples for RT-PCR.