This topic describes how to delete a repository by using the Google Cloud Platform Console or the command line.
To delete a repository, follow these steps.
In the GCP Console, open the All repositories page for Cloud Source Repositories.
Hover over the repository you want to delete and click Settings.
The General settings page opens.
Click Delete this repository.
The Remove repository dialog opens.
Type the name of the repository you want to delete.
From a terminal window, enter the following commands:
gcloud init gcloud source repos delete [REPOSITORY_NAME]
[REPOSITORY_NAME] is the name of your repository.
The response looks like the following:
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].