Retirement tax questions

Thank you for all of these responses.  After just speaking with Vanguard, they said that I needed to decide if this withdrawal is an Excess Contribution Removal or a Distribution along with what code for the 1099R.

 

Going by your discussion above, it sounds like an Excess Contribution Removal but the code I would not know.  

 

From reading your points above, it sounds like the Roth IRA withdrawal before due date doesn't have a penalty just taxes on the earnings in which I need to figure out where on the 1040 that amount will go.

 

Also, I'm surprised as I cannot find a concurrence or a rebuttal to your comment that a 401k withdrawal before due date will trigger a 10% penalty on the contribution and earnings.  Ouch.  I'm just attempting to pull out the $3500 that I put in during the 2023 tax year.  It sounds like even a day after contribution that once it is in there, leave it there.  Moving forward, I'll probably hold off on contributing into my 401k until the last few months of the tax season and instead focus on maxing out my IRA first.  You're pretty certain that in this scenario I'll be penalized 10%, correct?  If so, then I'll just leave the 401k alone.