This article will document the steps to delete a service deployment in NSX-T when deleting via the UI is unavailable.
This should only be used when deleting via the UI is unsuccessful such as in instances were the initial deployment failed leaving it in an incomplete state.
From the NSX-T UI:
The following will be run from an NSX-T manager in engineer mode
Get the Service Reference ID # curl -k -X GET -u <username>:<password> https://<NSX_Manager_IP>/policy/api/v1/infra/service-references/ Delete the Service Reference # curl -k -X DELETE -u <username>:<password> https://<NSX_Manager_IP>/policy/api/v1/infra/service-references/<Service_Reference_ID>/ Get the Service Manager ID # curl -k -X GET -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/service-managers/ Delete the Service Manager # curl -k -X DELETE -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/service-managers/<Service_Manager_ID>/ Get the Service ID # curl -k -X GET -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/services/ Get the Vendor Template ID # curl -k -X GET -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/services/<Service_ID>/vendor-templates/ Delete the Vendor Templates # curl -k -X DELETE -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/services/<Service_ID>/vendor-templates/<Vendor_Template_ID>/ Delete the Service # curl -k -X DELETE -u <username>:<password> https://<NSX_Manager_IP>/api/v1/serviceinsertion/services/<Service_ID>/