Method: projects.locations.repositories.packages.versions.delete

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the version to delete.

Authorization requires the following IAM permission on the specified resource name:

  • artifactregistry.versions.delete

Query parameters

Parameters
force

boolean

By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.