I wanted to buy a Nintendo Switch on eBay but the seller has downloaded the games on the switch so from the Eshop my question would be if you can delete the old account because he has forgotten his data or the existing games are lost
Purchased download software is linked to the Nintendo account and can only be used by it, or its sub-user accounts.
A completely different account can't use the games and they will be deleted.