刪除存放區

本主題說明如何使用Google Cloud 主控台或指令列刪除存放區。

如要刪除存放區,請按照下列步驟操作。

主控台

  1. 在 Google Cloud 控制台中,開啟 Cloud Source Repositories 的「所有存放區」頁面。

    Open Cloud Source Repositories

  2. 將游標懸停在要刪除的存放區上,然後按一下「設定」圖示

    「一般設定」頁面隨即開啟。

  3. 按一下「Delete this repository」

    系統會開啟「Remove repository」對話方塊。

  4. 輸入要刪除的存放區名稱。

  5. 點選「刪除」。

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].