Retirement tax questions

@DanaB27  "If you withdraw the excess contribution after the extended due date, then you will have to pay the 6% penalty but you can leave the earnings in the account and therefore will request a regular distribution in the amount of the excess contribution."... Can I withdraw the earnings as well?  If I do I will end up paying taxes on the earnings I withdraw, correct?  I cannot imagine that my earnings since December 2021 will be that much. Is there an advantage of leaving earnings in the account other than avoiding being taxed? Tax will be assessed on my 2023 return since I would be withdrawing the earnings in 2023, correct?