> ## Documentation Index
> Fetch the complete documentation index at: https://strattumai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a source type definition

> Remove a source type definition YAML from the workspace.

Deletes ``{WORKSPACE_PATH}/source_types/{name}.yaml``, removes all
associated vectors from Qdrant (by ``source_type`` payload field),
clears the sync watermark from PostgreSQL, and commits the removal
to the customer's workspace git repo (best-effort).

The Knowledge Worker will stop indexing this source on its next run.



## OpenAPI

````yaml /api-reference/knowledge-api.json delete /v1/knowledge/source-types/{name}
openapi: 3.1.0
info:
  title: Strattum Knowledge API
  description: >-
    REST API that serves semantic document search — embeddings via the
    configured LLM provider, indexed in Qdrant, with metadata stored in
    PostgreSQL. (PRD-004, Workstream 1.4)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/knowledge/source-types/{name}:
    delete:
      tags:
        - source-types
      summary: Delete a source type definition
      description: |-
        Remove a source type definition YAML from the workspace.

        Deletes ``{WORKSPACE_PATH}/source_types/{name}.yaml``, removes all
        associated vectors from Qdrant (by ``source_type`` payload field),
        clears the sync watermark from PostgreSQL, and commits the removal
        to the customer's workspace git repo (best-effort).

        The Knowledge Worker will stop indexing this source on its next run.
      operationId: delete_source_type_v1_knowledge_source_types__name__delete
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z][a-z0-9_-]*$
            title: Name
      responses:
        '204':
          description: Source type YAML deleted from workspace
        '404':
          description: Source type not found
        '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

````