How do I get rid of high interest rate credit cards without it affecting my credit score?

I have 2 credit cards both have annual fees and high interest rates. How can I get rid of them without my credit score going down?