- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
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 |
Required. The name of the version to delete. Format: |
Query parameters
Parameters | |
---|---|
force |
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.