Deductions & credits

what did you tell the custodian.?

Did you have the custodian reverse your contribution?

Or did you just take the money out?

 

It make a big difference in your reporting requirement.

If the latter, you  owe tax on that distribution, less your prorated non-taxable basis that you were so concerned about, but your funds are not in a Roth IRA.