---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}:unenrollDataSources"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}:unenrollDataSources"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}:unenrollDataSources

`POST /v1/projects/{projectsId}/locations/{locationsId}:unenrollDataSources`

## Request

- Base URL: `https://bigquerydatatransfer.googleapis.com`
- URL: `https://bigquerydatatransfer.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}:unenrollDataSources`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/bigquery`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/bigquery`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

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 ListDataSources 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.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- UnenrollDataSourcesRequest: A request to unenroll a set of data sources so they are no longer visible in the BigQuery UI's `Transfer` tab.
  - `dataSourceIds` string[]: Data sources that are unenrolled. It is required to provide at least one data source id.

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

---

[API](https://skmtc.dev/google/apis/bigquerydatatransfer.md) - [All operations](https://skmtc.dev/google/apis/bigquerydatatransfer/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/bigquerydatatransfer/revisions/0de47e8db40e?raw)
