Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the dataSources.list RPC and will also no longer appear in the BigQuery UI. Data transfers configurations of unenrolled data sources will not be scheduled.
HTTP request
POST https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*/locations/*}:unenrollDataSources
[[["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-07-02 UTC."],[[["\u003cp\u003eThis API endpoint \u003ccode\u003eprojects.locations.unenrollDataSources\u003c/code\u003e allows users to remove transfer configurations for specified data sources within a project.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint uses a POST request to the URL \u003ccode\u003ehttps://bigquerydatatransfer.googleapis.com/v1/{name=projects/*/locations/*}:unenrollDataSources\u003c/code\u003e, with \u003ccode\u003ename\u003c/code\u003e as a required path parameter representing the project.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be in JSON format containing a \u003ccode\u003edataSourceIds\u003c/code\u003e field, which is an array of strings specifying the IDs of the data sources to unenroll and requires at least one data source id.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests result in an empty JSON object response, and unenrolled data sources will no longer be visible in data source lists or the BigQuery UI, nor will they be scheduled for data transfer.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this endpoint requires the \u003ccode\u003eresourcemanager.projects.update\u003c/code\u003e IAM permission and the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: locations.unenrollDataSources\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n**Full name**: projects.locations.unenrollDataSources\n\nUnenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the dataSources.list RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled.\n\n### HTTP request\n\n`POST https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*/locations/*}:unenrollDataSources`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]