This topic describes how to delete a repository using the console or the command line.
To delete a repository:
Open the All Repositories view for Cloud Source Repositories:
Hover over the repository and click the Gear button.
The General Settings screen opens.
Click Delete This Repository.
The Remove Repository screen opens.
Type the name of the repository that you want to delete.
From a terminal window, type the following commands:
gcloud init gcloud source repos delete [REPOSITORY_NAME]
[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 Deleted [REPOSITORY_NAME].