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

> Deletes an MCP details by its ID. Requires `x-api-key` authentication.



## OpenAPI

````yaml DELETE /ext/mcp/{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/mcp/{id}:
    delete:
      summary: Delete MCP
      description: Deletes an MCP details by its ID. Requires `x-api-key` authentication.
      operationId: deleteMCP
      parameters:
        - name: id
          in: path
          required: true
          description: Unique identifier of the MCP details
          schema:
            type: string
            format: uuid
            example: 0f7b696c-ecdf-4900-addc-e7cfdbbce1c7
      responses:
        '204':
          description: MCP deleted successfully (no content returned)
        '400':
          description: Invalid MCP ID
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Invalid request body
        '401':
          description: Unauthorized – Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Unauthorized: not a valid authorization api key'
        '404':
          description: MCP not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                message: MCP not found
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Failed to retrieve mcp details
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````