Required. The name of the Endpoint resource from which to undeploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}
Request body
The request body contains data with the following structure:
Fields
deployedModelId
string
Required. The id of the DeployedModel to be undeployed from the Endpoint.
trafficSplit
map (key: string, value: integer)
If this field is provided, then the Endpoint's trafficSplit will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# Method: endpoints.undeployModel\n\n**Full name**: projects.locations.endpoints.undeployModel\n\nUndeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1``/{endpoint}:undeployModel` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`endpoint` `string` \nRequired. The name of the Endpoint resource from which to undeploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `deployedModelId` `string` \nRequired. The id of the DeployedModel to be undeployed from the Endpoint.\n`trafficSplit` `map (key: string, value: integer)` \nIf this field is provided, then the Endpoint's [trafficSplit](/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints#Endpoint.FIELDS.traffic_split) will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it. \n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/vertex-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation)."]]