[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],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]."]]