**Full name**: projects.locations.models.deleteVersion

Deletes a Model version.

Model version can only be deleted if there are no `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1beta1/projects.locations.endpoints#DeployedModel` created from it. Deleting the only version in the Model is not allowed. Use `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1beta1/projects.locations.models/delete#google.cloud.aiplatform.v1beta1.ModelService.DeleteModel` for deleting the Model instead.

### Endpoint

delete `https://{service-endpoint}/v1beta1/{name}:deleteVersion`   
Where `{service-endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest#rest_endpoints).

### Path parameters

`name` `string` Required. The name of the model version to be deleted, with a version id explicitly included.

Example: `projects/{project}/locations/{location}/models/{model}@1234`

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `aiplatform.models.delete`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).