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

# Delete a vector store

> Permanently delete a vector store and all its associated data.
    
    This endpoint performs a complete deletion of the vector store:
    1. Deletes the vector store from the third-party engine
    2. Removes all associated files and data
    3. Deletes the vector store record from the database
    
    **Warning:** This operation is irreversible and will permanently delete all data.
    
    **Authentication:**
    - For SGP Knowledge Base, SGP credentials are required
    
    **Returns:**
    - Success message confirming deletion
    
    **Example Response:**
    ```json
    {
        "message": "Vector store deleted successfully"
    }
    ```



## OpenAPI

````yaml https://dex.sgp.scale.com/openapi.json delete /v1/projects/{project_id}/vector-stores/{vector_store_id}
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}:
    delete:
      tags:
        - Vector Stores
      summary: Delete a vector store
      description: |-
        Permanently delete a vector store and all its associated data.
            
            This endpoint performs a complete deletion of the vector store:
            1. Deletes the vector store from the third-party engine
            2. Removes all associated files and data
            3. Deletes the vector store record from the database
            
            **Warning:** This operation is irreversible and will permanently delete all data.
            
            **Authentication:**
            - For SGP Knowledge Base, SGP credentials are required
            
            **Returns:**
            - Success message confirming deletion
            
            **Example Response:**
            ```json
            {
                "message": "Vector store deleted successfully"
            }
            ```
      operationId: >-
        delete_vector_store_v1_projects__project_id__vector_stores__vector_store_id__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
      responses:
        '200':
          description: Vector store deleted successfully
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request - 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 delete vector store from
            third-party engine
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

````