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

# Delete Guardrail

> Deletes a guardrail by its unique ID. Deletion does not cascade - if the guardrail is still attached to one or more agents, the attachment reference is left dangling. It's excluded automatically at runtime (harmless), but not cleaned up. Detach it first if you want a clean state.



## OpenAPI

````yaml DELETE /ext/guardrail/{id}
openapi: 3.0.3
info:
  title: TruGen Developer Platform API
  version: 1.0.0
  description: OpenAPI specification for MCP endpoint
servers:
  - url: https://api.trugen.ai/v1
security: []
paths:
  /ext/guardrail/{id}:
    delete:
      summary: Delete Guardrail
      description: >-
        Deletes a guardrail by its unique ID. Deletion does not cascade - if the
        guardrail is still attached to one or more agents, the attachment
        reference is left dangling. It's excluded automatically at runtime
        (harmless), but not cleaned up. Detach it first if you want a clean
        state.
      operationId: deleteGuardrailById
      parameters:
        - name: id
          in: path
          required: true
          description: The UUID of the guardrail
          schema:
            type: string
            format: uuid
            example: dfbaa3c6-1e90-43df-869a-b023896a198c
      responses:
        '200':
          description: Guardrail deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    example: dfbaa3c6-1e90-43df-869a-b023896a198c
                  message:
                    type: string
                    example: Guardrail deleted
                required:
                  - id
                  - message
        '401':
          description: Unauthorized - missing or invalid API key
        '404':
          description: Guardrail not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: Guardrail not found
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````