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

# Reset Rag

> Resets the data and state of the specified RAG system, effectively clearing all trained knowledge.



## OpenAPI

````yaml delete /rag/{rag_id}/reset/
openapi: 3.0.3
info:
  title: Lyzr RAG System Management
  version: 1.0.0
  description: API endpoint for managing and resetting RAG system configurations.
servers:
  - url: https://rag-prod.studio.lyzr.ai/v3
security: []
paths:
  /rag/{rag_id}/reset/:
    delete:
      summary: Reset Rag
      description: >-
        Resets the data and state of the specified RAG system, effectively
        clearing all trained knowledge.
      operationId: resetRag
      parameters:
        - name: rag_id
          in: path
          required: true
          description: >-
            The unique identifier (ID) of the RAG system to reset (must be a
            24-character hex string).
          schema:
            type: string
            example: 654c602a46c3b6d4e28741b0
      responses:
        '200':
          description: RAG system successfully reset.
          content:
            application/json:
              schema:
                type: string
                description: Placeholder for a success status or message.
        '422':
          description: >-
            Validation Error (e.g., incorrect path parameter format if not
            caught by 500).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
                      properties:
                        loc:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: integer
                        msg:
                          type: string
                        type:
                          type: string
        '500':
          description: Internal Server Error, typically due to an invalid RAG ID format.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: >-
                      Error: '123434' is not a valid ObjectId, it must be a
                      12-byte input or a 24-character hex string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````