i accidentally contributed to Roth IRA last year, but i want to change to traditional to reduce my income? How

I accidentally contributed to Roth IRA last year, but I want to change to traditional to reduce my income? How?

I already purchased stocks with that 5K contribution and it's mixed with 7K contribution from 2019 that's also in stocks.