Do I need to withdraw the earning from previous year's excess contributions on Roth IRA after I have withdrawn the contributions?

I made excess contributions on Roth IRA in 2022 and 2023, only withdraw the contributions in 2025. I have filed amended return and paid for the 6% penalty for 2022 and 2023 (2024 tax is still preparing). The question is that do I need to withdraw the earnings from those contributions as well?