Effective June 17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't previously used Cloud Source Repositories, you can't enable the API or use Cloud Source Repositories. New projects not connected to an organization can't enable the Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to June 17, 2024 are not affected by this change.
[[["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-08-28 UTC."],[],[],null,["# Deleting repositories\n\nThis topic describes how to delete a repository by using the\nGoogle Cloud console or the command line.\n\nTo delete a repository, follow these steps. \n\n### console\n\n\n1. In the Google Cloud console, open the **All repositories** page for\n Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n2. Hold the pointer over the repository you want to delete and click\n **Settings** *settings*.\n\n The **General settings** page opens.\n3. Click **Delete this repository**\n *delete*.\n\n The **Remove repository** dialog opens.\n4. Type the name of the repository you want to delete.\n\n5. Click **Delete**.\n\n\u003cbr /\u003e\n\n### gcloud\n\nFrom a terminal window, enter the following commands: \n\n gcloud init\n gcloud source repos delete [REPOSITORY_NAME]\n\nWhere `[REPOSITORY_NAME]` is the name of your repository.\n\nThe response looks like the following: \n\n If [REPOSITORY_NAME] is deleted, the name cannot be reused for up to\n seven days.\n\n Delete \"[REPOSITORY_NAME]\" in project \"gcloud-test\" (Y/n)? y\n\n Deleted [REPOSITORY_NAME]."]]