Method: projects.locations.apis.versions.delete

Delete an API version. Version can only be deleted if all underlying specs, operations, definitions and linked deployments are deleted.

HTTP request

DELETE https://apihub.googleapis.com/v1/{name=projects/*/locations/*/apis/*/versions/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the version to delete. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Query parameters

Parameters
force

boolean

Optional. If set to true, any specs from this version will also be deleted. Otherwise, the request will only work if the version has no specs.

Request body

The request body must be empty.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.versions.delete

For more information, see the IAM documentation.