发送反馈
删除代码库
本主题介绍如何使用 Google Cloud Console 或命令行删除代码库。
要删除代码库,请按照下列步骤操作。
控制台
在 GCP Console 中,为 Cloud Source Repositories 打开 所有代码库 页面。
打开 Cloud Source Repositories
将指针放在要删除的代码库上,然后点击 设置 settings 。
常规设置 页面打开。
点击 删除此代码库 delete 。
移除代码库 对话框打开。
输入您要删除的代码库的名称。
点击删除 。
gcloud 在终端窗口中,输入以下命令:
gcloud init
gcloud source repos delete [REPOSITORY_NAME]
其中 [REPOSITORY_NAME]
是代码库的名称。
回答如下所示:
If [REPOSITORY_NAME] is deleted, the name cannot be reused for up to
seven days.
Delete "[REPOSITORY_NAME]" in project "gcloud-test" (Y/n)? y
Deleted [REPOSITORY_NAME].
发送反馈
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 2022-05-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
需要向我们提供更多信息?