del nsx
command on the ESXi host is not successful in removing NSX VIBs from the Transport Node.failed to remove host switches
.nsxaVim: [2102769]: ERROR ApplyNsxDvsConfig on (## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##) failed: {'fault': 'PlatformConfigFault', 'msg': 'An error occurred during host configuration.', 'faultMessage': ['Operation failed, diagnostics report: Unable to clear DVS propertycom.vmware.nsx.vdl2.enabled: Status(bad0004)= Busy']}^@
nsxaVim: [2102769]: ERROR Failed to hot-swap cvds ['## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##']^@
nsxaVim: [2102769]: INFO HotSwapCvds result: Failed to hot-swap cvds ['## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##']ApplyNsxDvsConfig on (## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##) failed: {'fault': 'PlatformConfigFault', 'msg': 'An error occurred during host configuration.', 'faultMessage': ['Operation failed, diagnostics report: Unable to clear DVS propertycom.vmware.nsx.vdl2.enabled: Status(bad0004)= Busy']}^@
...
nsxaVim: [2102769]: INFO Invoking ApplyDvsList: dvsParams: ;reset=True;management;deleteTn=True | preDvsList: ['']
nsxaVim: [2102769]: INFO dvs to reset [[]]
An ESXi host cannot have NSX VIBs removed if NSX VTEP vmkernel interfaces are still present or virtual switches contain NSX properties.
Workaround:
esxcli network ip interface remove --interface-name=vmk10
net-dvs -D -p <port uuid> <switch_name>
net-dvs -D -p xxxxxxxx-9801-4fed-xxxxxxxxxxxx dvs-name
net-dvs -l
del nsx
again on the ESXi host../usr/lib64/vmware/nsx-opsagent/bin/nsxcfg-vswitch -s
del nsx
again to complete the removal of NSX-T from the ESXi host.https://<esxi-host>/mob
in a web browser and delete the VDS/NVDS containing the NSX properties.