"%Exception when deleting nsx from host: ' error code: 4 stdout: delete_nsx_instance_from_host.sh: INFO: NSX reset script called with argument fabric_node on nsx_instance_from_host.sh: INFO:Run transport_node reset on ESX node % Failed to remove all host switches or logical switches delete_nsx_instance_from_host.sh: ERROR: Failed to reset nsxa app of nsx-opsagent. Please check ospagent logs for more details. , stderr: Mon Nov 07 2022 UTC 07:03:02.307 ERROR: Failed to reset nsxa app of nsx-opsagent. Please check ospagent logs for more details. ESX1.example.com> del nsx"
VMware NSX
An ESXi Host cannot have NSX VIBs removed if NSX VTEP vmkernel interfaces are still present or virtual switches contain NSX properties.
/usr/lib64/vmware/nsx-opsagent/bin/nsxcfg-vswitch -sesxcli network ip interface remove -i vmk10 , esxcli network ip interface remove -i vmk50nsxcli -c del nsx