It’s possible to remove the information for the eSIM. Either go to Settings - Cellular/Mobile Data - select the plan you want to erase, remove it.
When you remove everything from your device (erase all content and settings), you can decide to erase the eSIM as well, or keep it.