Method: projects.repos.delete

Deletes a repo.

HTTP request

DELETE https://sourcerepo.googleapis.com/v1/{name=projects/*/repos/**}

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

The name of the repo to delete. Values are of the form projects/<project>/repos/<repo>.

Authorization requires the following Google IAM permission on the specified resource name:

  • source.repos.delete

Request body

The request body must be empty.

Response body

If successful, the response body will be empty.

Authorization

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/source.read_only
  • https://www.googleapis.com/auth/source.read_write
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Source Repositories