Delete a repository

Required roles

To get the permissions that you need to delete a repository, ask your administrator to grant you the following IAM roles:

For more information about granting roles, see Manage access.

You might also be able to get the required permissions through custom roles or other predefined roles.

For information on granting Secure Source Manager roles, see Access control with IAM and Grant users instance access.

Delete a repository

To delete your repository and all associated data, use the following HTTP method and URL.

Before using any of the request data, make the following replacements:

  • INSTANCE_ID: the instance ID.
  • PROJECT_NUMBER: the project number of the Google Cloud project where Secure Source manager is running.
  • LOCATION: the region where your instance is located. For information on supported locations, see Locations.
  • REPOSITORY_ID: the repository ID.

HTTP method and URL:


To send your request, expand one of these options:

You should receive a JSON response similar to the following:


What's next