Deleting a repository

To delete a repository from Cloud Source Repositories:


  1. Open the source view in the GCP Console:

    Open the Source View in the Console

  2. Click the More button More button next to the repository you want to delete.

    Create Repository button

  3. Select Delete.

  4. Enter the name of the repository where prompted and then confirm deletion.


From the command line, call:

gcloud init
gcloud source repos delete [REPOSITORY_NAME]

The response looks like:

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