Send feedback  
  
 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.  Learn more about data deletion on Google Cloud  
.
If you want to recover deleted repositories, then  Google Cloud Support  
might be able to help recover deleted Artifact Registry repositories. However, Google Cloud Support can't restore individual images. Data recovery isn't a feature of Artifact Registry and is only performed as a good-will gesture. Google Cloud 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 Google Cloud 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 or multi-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  ```  
 
  
  
  
  
  
  Send feedback  
  
 
 
  
  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 2025-10-24 UTC.
 
  
    Need to tell us more?  
  
  
 [[["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-10-24 UTC."],[],[]]