Deleting a Repository

To delete a repository from Google Cloud Source Repositories:

console

  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.

gcloud

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

Deleted [REPOSITORY_NAME].
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Source Repositories