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

# Delete Prompt Template External ID

Detach an external ID mapping from a prompt template.


## OpenAPI

````yaml DELETE /prompt-templates/{prompt_template_id}/external-ids/{source}/{external_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /prompt-templates/{prompt_template_id}/external-ids/{source}/{external_id}:
    delete:
      tags:
        - external-ids
      summary: Delete Prompt Template External ID
      operationId: delete_prompt_template_id_external_id
      parameters:
        - name: prompt_template_id
          in: path
          required: true
          schema:
            type: integer
            title: prompt_template_id
        - name: source
          in: path
          required: true
          schema:
            type: string
            title: source
            minLength: 1
            maxLength: 128
          description: External ID source.
        - name: external_id
          in: path
          required: true
          schema:
            type: string
            title: external_id
            minLength: 1
            maxLength: 512
          description: External ID value. URL-encode any reserved path characters.
      responses:
        '200':
          description: External ID detached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalIdDeleteResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalIdErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalIdErrorResponse'
        '404':
          description: Entity Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalIdErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExternalIdDeleteResponse:
      properties:
        success:
          type: boolean
          const: true
          default: true
          title: Success
      type: object
      required:
        - success
      title: ExternalIdDeleteResponse
    ExternalIdErrorResponse:
      properties:
        success:
          type: boolean
          const: false
          default: false
          title: Success
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: ExternalIdErrorResponse
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````