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.
[[["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 2025-08-25 UTC."],[],[],null,["# Enable and disable the service\n\nThis page describes the steps required to enable or disable Cloud Source Repositories.\n| **Caution:** Effective June 17, 2024, Cloud Source Repositories isn't available\n| to new customers. If your organization hasn't\n| previously used Cloud Source Repositories, you can't enable the API or use\n| Cloud Source Repositories. New projects not connected to an organization can't enable the\n| Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to\n| June 17, 2024 are not affected by this change.\n\nEnable the service\n------------------\n\n1. Ensure you have the \\`serviceusage.services.enable\\` IAM permission on the project.\n2. Enable the Cloud Source Repositories API with the following Google Cloud CLI command: \n\n ```bash\n gcloud services enable sourcerepo.googleapis.com\n ```\n\nDisable the service\n-------------------\n\n1. Before you disable the Cloud Source Repositories API, ensure that all code that you\n want to keep is available in another location.\n\n2. It's recommended that you [delete repositories](/source-repositories/docs/deleting-a-repository) before you\n disable the API.\n\n3. To disable Cloud Source Repositories, run the following command for your current\n project:\n\n gcloud services disable sourcerepos.googleapis.com"]]