Contact Us

How to force delete an NSX-T 3 Segment

VMware

I experienced some trouble trying to delete a segment with the NSX-T Policy UI. There was an error message complaining about a virtual machine that was still attached to the segment. I verified this message by going into vCenter and checking all the virtual machines and I was sure there were no virtual machines connected to this segment.

I fired up postman and tried to delete the segment through the REST API and again I got the same error message.

I looked-up the API call in the online documentation and discovered that there’s also a force delete option. Force delete bypasses validations during segment deletion. This may result in inconsistent connectivity.

Request:

URI Path(s):
/policy/api/v1/infra/segments/<segment-id>?force=true

 

Request Headers:

Query Parameters:

Request Body:

The segment was deleted successfully. 

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound