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

# Remove files from vector store

> Remove specific files from a vector store.
    
    This endpoint removes files and their associated embeddings from the vector store:
    1. Removes files from the third-party vector store engine
    2. Deletes file associations from the database
    3. All embeddings and searchable content for these files are permanently removed
    
    **Authentication:**
    - Credentials can be provided either through project-level credentials or request-level credentials
    - For SGP Knowledge Base, SGP credentials are required
    
    **Warning:** This operation permanently removes files and their embeddings from the vector store.
    
    **Returns:**
    - Success message confirming file removal
    
    **Example Request:**
    ```json
    {
        "parse_result_ids": ["parse_123", "parse_456"],
        "credentials": {
            "sgp": {
                "api_key": "your-api-key",
                "base_url": "https://api.example.com"
            }
        }
    }
    ```
    
    **Example Response:**
    ```json
    {
        "message": "Files removed from vector store successfully"
    }
    ```



## OpenAPI

````yaml https://dex.sgp.scale.com/openapi.json delete /v1/projects/{project_id}/vector-stores/{vector_store_id}/files
openapi: 3.1.0
info:
  title: Document Understanding API
  description: API for uploading and processing documents
  version: 0.4.5
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
paths:
  /v1/projects/{project_id}/vector-stores/{vector_store_id}/files:
    delete:
      tags:
        - Vector Stores
      summary: Remove files from vector store
      description: |-
        Remove specific files from a vector store.
            
            This endpoint removes files and their associated embeddings from the vector store:
            1. Removes files from the third-party vector store engine
            2. Deletes file associations from the database
            3. All embeddings and searchable content for these files are permanently removed
            
            **Authentication:**
            - Credentials can be provided either through project-level credentials or request-level credentials
            - For SGP Knowledge Base, SGP credentials are required
            
            **Warning:** This operation permanently removes files and their embeddings from the vector store.
            
            **Returns:**
            - Success message confirming file removal
            
            **Example Request:**
            ```json
            {
                "parse_result_ids": ["parse_123", "parse_456"],
                "credentials": {
                    "sgp": {
                        "api_key": "your-api-key",
                        "base_url": "https://api.example.com"
                    }
                }
            }
            ```
            
            **Example Response:**
            ```json
            {
                "message": "Files removed from vector store successfully"
            }
            ```
      operationId: >-
        remove_files_from_vector_store_v1_projects__project_id__vector_stores__vector_store_id__files_delete
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: vector_store_id
          in: path
          required: true
          schema:
            type: string
            title: Vector Store Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveParseResultsFromVectorStoreRequest'
      responses:
        '200':
          description: Files removed from vector store successfully
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request - Invalid credentials or missing required fields
        '404':
          description: Project or vector store not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: >-
            Internal server error - Failed to remove files from third-party
            engine
components:
  schemas:
    RemoveParseResultsFromVectorStoreRequest:
      properties:
        parse_result_ids:
          items:
            type: string
          type: array
          title: Parse Result Ids
          description: IDs of the parse results
      type: object
      required:
        - parse_result_ids
      title: RemoveParseResultsFromVectorStoreRequest
    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

````