> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unlink Project Data Source

> Unlink a data source from a project.

With ``delete_connector=true``, also delete the underlying connector on the Data
Sources service — but only when no other project still links it (so a shared
connector is never pulled out from under another project).



## OpenAPI

````yaml https://dex.sgp.scale.com/openapi.json delete /v1/projects/{project_id}/data-sources/{data_source_id}
openapi: 3.1.0
info:
  title: Document Understanding API
  description: API for uploading and processing documents
  version: 0.6.0
servers: []
security:
  - ApiKey: []
    AccountId: []
tags:
  - name: Projects
    description: Operations related to project creation and management
  - name: Files
    description: Operations related to file upload and access
  - name: Parse
    description: Operations related to starting parse jobs and accessing their results
  - name: Vector Stores
    description: Operations related to vector store creation and management
  - name: Extract
    description: Operations related to starting extract jobs and accessing their results
  - name: Research
    description: Dex Research agent kickoff and results.
  - name: Jobs
    description: Operations related to monitoring jobs and their status
  - name: Data sources
    description: Project-scoped integration with the Data Sources service
  - name: Webhooks
    description: Callbacks from external services
paths:
  /v1/projects/{project_id}/data-sources/{data_source_id}:
    delete:
      tags:
        - Data sources
      summary: Unlink Project Data Source
      description: >-
        Unlink a data source from a project.


        With ``delete_connector=true``, also delete the underlying connector on
        the Data

        Sources service — but only when no other project still links it (so a
        shared

        connector is never pulled out from under another project).
      operationId: >-
        unlink_project_data_source_v1_projects__project_id__data_sources__data_source_id__delete
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: data_source_id
          in: path
          required: true
          schema:
            type: string
            title: Data Source Id
        - name: delete_connector
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Delete Connector
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication
    AccountId:
      type: apiKey
      in: header
      name: x-selected-account-id
      description: Selected Account ID

````