Deleting repositories

This topic describes how to delete a repository using the console or the command line.

To delete a repository:


  1. Open the All Repositories view for Cloud Source Repositories:

    Open Cloud Source Repositories

  2. Hover over the repository and click the Gear button.

    The General Settings screen opens.

  3. Click Delete This Repository.

    The Remove Repository screen opens.

  4. Type the name of the repository that you want to delete.

  5. Click Delete.


From a terminal window, type the following commands:

gcloud init
gcloud source repos delete [REPOSITORY_NAME]

Where [REPOSITORY_NAME] is the name of your repository.

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

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Source Repositories