发送反馈
删除代码库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本主题介绍如何使用 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].
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-05-04。
[{
"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":"其他"
}]
需要向我们提供更多信息?