Deductions & credits

I'm a bit confused.

What I want to know is whether I can cancel my contribution of $8000 to Roth IRA, which I already did in Jan. 2024,  and switch that contribution to the traditional IRA.