It is past the due date for those years including extensions.
after tax due date including extensions: you distribute the excess amount being carried forward on 5329,
(or offset it with currently allowed contribution) .
Amended return(s) will be needed supplying that Form 5329 since there is a 6% penalty per year on accreting excess contributions .
Earnings stay in the account.
Consult your custodian to obtain the correct removal form for this case.
=====
If you already filed you have to attach the new or changed forms to 1040-X
Get forms for the years you are amending at IRS.gov
1040-X is now a forever form.
Include your penalty here :
Form 5329
Schedule 2 Line 8
Form 1040-X Line 10
Do not include your old 1040 nor your revised 1040 because the Form 1040-X reflects any changes there and becomes your new tax return.
@dinah14