A general system error occurred: vDS host error: see faultCause Cannot create DVPort ### of VDS <DISTRIBUTED SWITCH NAME> on the host <hostname.example.com>Stale VMs or templates are still registered to the vCenter through the ESXi host which is trying to remove.
This can be verified by:
Review the following documentation for the correct process to remove an ESXi host from a vCenter environment: How to Remove an ESXi Host from Your vCenter Server Instance.