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.
Returns
Type
Description
bool
setForce
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.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The name of the version to delete.
Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}
Please see ApiHubClient::versionName() for help formatting this field.
[[["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-09-09 UTC."],[],[],null,["# Google Cloud Api Hub V1 Client - Class DeleteVersionRequest (0.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.2.1 (latest)](/php/docs/reference/cloud-apihub/latest/V1.DeleteVersionRequest)\n- [0.2.0](/php/docs/reference/cloud-apihub/0.2.0/V1.DeleteVersionRequest)\n- [0.1.4](/php/docs/reference/cloud-apihub/0.1.4/V1.DeleteVersionRequest) \nReference documentation and code samples for the Google Cloud Api Hub V1 Client class DeleteVersionRequest.\n\nThe [DeleteVersion](/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__deleteVersion__) method's\nrequest.\n\nGenerated from protobuf message `google.cloud.apihub.v1.DeleteVersionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ApiHub \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the version to delete.\n\nFormat:\n`projects/{project}/locations/{location}/apis/{api}/versions/{version}`\n\n### setName\n\nRequired. The name of the version to delete.\n\nFormat:\n`projects/{project}/locations/{location}/apis/{api}/versions/{version}`\n\n### getForce\n\nOptional. If set to true, any specs from this version will also be deleted.\n\nOtherwise, the request will only work if the version has no specs.\n\n### setForce\n\nOptional. If set to true, any specs from this version will also be deleted.\n\nOtherwise, the request will only work if the version has no specs.\n\n### static::build"]]