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

# templates.delete("name@version")



## OpenAPI

````yaml /api-reference/openapi.json delete /templates/{name}/versions/{version}
openapi: 3.1.0
info:
  title: paddock API
  version: 1.0.0
  description: >-
    The paddock API. Send an API key, or a session token on its own session, as
    a bearer token.
servers:
  - url: https://api.paddock.build/v1
security:
  - bearer: []
paths:
  /templates/{name}/versions/{version}:
    delete:
      summary: templates.delete("name@version")
      operationId: deleteTemplateVersion
      parameters:
        - $ref: '#/components/parameters/TemplateName'
        - $ref: '#/components/parameters/TemplateVersion'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    TemplateName:
      name: name
      in: path
      required: true
      description: The template's name
      schema:
        type: string
        pattern: ^[a-z0-9-]{1,64}$
    TemplateVersion:
      name: version
      in: path
      required: true
      description: The template version
      schema:
        type: integer
        minimum: 1
  responses:
    NoContent:
      description: Done
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
    Error:
      description: Every non-2xx response
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  schemas:
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key, or a session token on its own session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.