After you file

If you use the amendment option then use the downloaded version if possible. When using the online version the "undo amend" will remove the 1040X but it will NOT restore the changes you made which will mess with the archived return.