Shape the future of software delivery and make your voice heard by taking the 2023 State of DevOps survey.

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

DELETE https://artifactregistry.googleapis.com/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}

The URL uses 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.