Segment path=*** has N VMs or VIFs attached. Disconnect all VMs and VIFs before deleting a segment.
/var/log/policy.log file contains the following error message:Segment /infra/segments/[segment] has VMs attached. Please disconnect all VMs before deleting a segment.
VMware NSX-T
VMware NSX
This issue occurs when stale logical ports remain attached to the segment in the NSX Manager
To resolve this issue, you must manually identify and delete the stale ports from the NSX Manager UI:
(Note: This may take a few minutes to update)0.0, proceed to delete the segment.
Steps to remove stale logical-port(s) in NSX-T after attempted delete : KB 91546