Management Plane API > Security > Services > Service Insertion

Remove service deployment

Remove the service deployment. Will remove all the Service VMs that were
created as part of this deployment. User can send optional force delete
option which will force remove the deployment, but should be used
only when the regular delete is not working. Regular delete will ensure
proper cleanup of Service VMs and related objects. Directly calling this
API without trying regular undeploy will result in unexpected results,
and orphan objects.

Request:

Method:
DELETE
URI Path(s):
/api/v1/serviceinsertion/services/<service-id>/service-deployments/<service-deployment-id>
Request Headers:
n/a
Query Parameters:
DeleteRequestParameters+
Request Body:
n/a

Example Request:

DELETE https://<nsx-mgr>/api/v1/serviceinsertion/services/564dab50-63a0-8b4f-a1f8-20e4d36efc3b/service-deployments/01dfa028-bc90-4be4-bda1-a98b4eb65856

Successful Response:

Response Code:
202 Accepted
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

service_insertion

Additional Errors: