[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eThis page explains how to delete Artifact Registry repositories, ensuring you have the necessary administrator permissions beforehand.\u003c/p\u003e\n"],["\u003cp\u003eBefore deleting a repository, verify that any packages you wish to preserve are stored in an alternative location.\u003c/p\u003e\n"],["\u003cp\u003eAfter deleting a repository, it is important to update your build and configuration files to remove any references to the removed repository.\u003c/p\u003e\n"],["\u003cp\u003eRepositories can be deleted through the Google Cloud console by selecting the repository and clicking "Delete", or via the gcloud command \u003ccode\u003egcloud artifacts repositories delete REPOSITORY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf you disable the Artifact Registry API or delete the project, your repository data will be deleted after 7 days, and the Artifact Registry services will be unavailable.\u003c/p\u003e\n"]]],[],null,["# Delete repositories\n\nThis page describes how to delete Artifact Registry repositories.\n\nBefore you begin\n----------------\n\nYou must have the Artifact Registry Administrator role or a role with\nequivalent [permissions](/artifact-registry/docs/access-control#permissions).\n\nDeleting repositories\n---------------------\n\nBefore you remove a repository, ensure that any packages that you want to keep\nare available in another location.\n| **Warning:** If you disable the Artifact Registry API or [delete the project](/resource-manager/docs/creating-managing-projects#shutting_down_projects), Artifact Registry services become unavailable. Artifact Registry deletes repository data after 7 days. [Learn more about data deletion on Google Cloud](/security/deletion).\n\nWhen you delete a repository, make sure all references to the\nrepository are replaced in your build and configuration files.\n\nTo delete a repository: \n\n### Console\n\n1. Open the **Repositories** page in the Google Cloud console.\n\n [Open the Repositories page](https://console.cloud.google.com/artifacts)\n2. In the repository list, select the repository to delete.\n\n3. Click **Delete**.\n\n### gcloud\n\nTo delete the a repository, run the following command: \n\n```bash\ngcloud artifacts repositories delete REPOSITORY \\\n[--location=LOCATION] [--async]\n```\n\nWhere\n\n- \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e is the name of the repository.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eLOCATION\u003c/code\u003e\u003c/var\u003e is the regional or multi-regional [location](/artifact-registry/docs/repo-locations) of the repository. You can omit this flag if you set a [default](/artifact-registry/docs/repositories/gcloud-defaults#set).\n- `--async` returns immediately, without waiting for the operation in progress to complete.\n\nFor more information about the command, run the following command: \n\n gcloud artifacts repositories delete --help\n ```"]]