Leader of the Islamic Revolution Ayatollah Seyyed Ali Khamenei has pardoned or commuted the sentences of thousands of convicts, including large groups of detainees found guilty of involvement in the recent foreign-backed riots in the country.