Delete repositories
This page describes how to delete Artifact Registry repositories.
Before you begin
You must have the Artifact Registry Administrator role or a role with
equivalent permissions .
Deleting repositories
Before you remove a repository, ensure that any packages that you want to keep
are available in another location.
Warning: If you disable the Artifact Registry API or
delete the project , Artifact Registry services become
unavailable. Artifact Registry deletes repository data after 7 days.
If you want to recover deleted repositories, then Cloud de Confiance by S3NS Support might be able to help recover deleted Artifact Registry repositories. However, Cloud de Confiance by S3NS Support can't restore individual images. Data recovery isn't a feature of Artifact Registry and is only performed as a good-will gesture. Cloud de Confiance by S3NS Support tries to recover Artifact Registry repositories on a best-effort basis. During the process of restoring Artifact Registry repositories, don't try to re-create the repository or push images to it.
When you delete a repository, make sure all references to the
repository are replaced in your build and configuration files.
To delete a repository:
Console
Open the Repositories page in the Cloud de Confiance console.
Open the Repositories page
In the repository list, select the repository to delete.
Click Delete .
gcloud To delete the a repository, run the following command:
gcloud artifacts repositories delete REPOSITORY \
[ --location= LOCATION ] [ --async]
Where
REPOSITORY is the name of the repository.
LOCATION is the regional location of the
repository.
You can omit this flag if you set a default .
--async returns immediately, without waiting for the operation in
progress to complete.
For more information about the command, run the following command:
gcloud artifacts repositories delete --help
```
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-02 UTC."],[],[]]