[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/source-repositories/docs/enable-disable-cloud-source-repositories [Back]  [Original]

Enable and disable the service  |  Cloud Source Repositories  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Enable and disable the service Stay organized with collections Save and categorize content based on your preferences.

This page describes the steps required to enable or disable Cloud Source Repositories.

Caution: Effective June 17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't previously used Cloud Source Repositories, you can't enable the API or use Cloud Source Repositories. New projects not connected to an organization can't enable the Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to June 17, 2024 are not affected by this change.

Enable the service

  1. Ensure you have the `serviceusage.services.enable` IAM permission on the project.
  2. Enable the Cloud Source Repositories API with the following Google Cloud CLI command:
    gcloud services enable sourcerepo.googleapis.com

Disable the service

  1. Before you disable the Cloud Source Repositories API, ensure that all code that you want to keep is available in another location.

  2. It's recommended that you delete repositories before you disable the API.

  3. To disable Cloud Source Repositories, run the following command for your current project:

    gcloud services disable sourcerepo.googleapis.com
    
Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page