See the final question here:
https://www.irs.gov/retirement-plans/retirement-plans-faqs-regarding-iras-recharacterization-of-roth...