Stay organized with collectionsSave and categorize content based on your preferences.
Full name: projects.locations.models.deleteVersion
Deletes a Model version.
Model version can only be deleted if there are noDeployedModelscreated from it. Deleting the only version in the Model is not allowed. Usemodels.deletefor deleting the Model instead.
[[["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: models.deleteVersion\n\n**Full name**: projects.locations.models.deleteVersion\n\nDeletes a Model version.\n\nModel version can only be deleted if there are no [DeployedModels](/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints#DeployedModel) created from it. Deleting the only version in the Model is not allowed. Use [models.delete](/vertex-ai/docs/reference/rest/v1/projects.locations.models/delete#google.cloud.aiplatform.v1.ModelService.DeleteModel) for deleting the Model instead. \n\n### Endpoint\n\ndelete `https:``/``/{service-endpoint}``/v1``/{name}:deleteVersion` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`name` `string` \nRequired. The name of the model version to be deleted, with a version id explicitly included.\n\nExample: `projects/{project}/locations/{location}/models/{model}@1234`\n\n### Request body\n\nThe request body must be empty. \n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/vertex-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation)."]]