There is not way to erase a wrong eSIM if the phone is locked to a carrier.
There is a logic bug in the Iphone hase esim if the phone is locked to a carrier.
If you try add another carrier esim to the locked phone, the phone stuck on the request unlock page,
no way go to setting menu to remove esim.
there is a logical dead loop.
In order to remove the esim card, you must go to the settings menu, and in order to go to the settings menu, you must remove the esim.
Apple need to fix this bug.