gcloud apihub apis versions delete

NAME
gcloud apihub apis versions delete - delete a Version
SYNOPSIS
gcloud apihub apis versions delete (VERSION : --api=API --location=LOCATION) [--force] [GCLOUD_WIDE_FLAG]
DESCRIPTION
Delete a version
EXAMPLES
To delete a version with the ID my-version for API my-api, run:
gcloud apihub apis versions delete my-version --api=my-api --project=my-project --location=us-central1
POSITIONAL ARGUMENTS
Version resource - The name of the version to delete. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version} The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument version on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

VERSION
ID of the version or fully qualified identifier for the version.

To set the version attribute:

  • provide the argument version on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--api=API
The api id of the version resource.

To set the api attribute:

  • provide the argument version on the command line with a fully specified name;
  • provide the argument --api on the command line.
--location=LOCATION
The location id of the version resource.

To set the location attribute:

  • provide the argument version on the command line with a fully specified name;
  • provide the argument --location on the command line.
FLAGS
--force
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.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

API REFERENCE
This command uses the apihub/v1 API. The full documentation for this API can be found at: https://cloud.google.com/apigee/docs/api-hub/what-is-api-hub
NOTES
This variant is also available:
gcloud alpha apihub apis versions delete