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

# Delete Template

> Archive (soft-delete) a custom template. The template stops appearing in List Templates and can no longer be used for new sessions; notes already generated with it are unaffected.


Archive a custom template. It disappears from [List Templates](/ekascribe/api-reference/templates/list-templates) and can't be used for new sessions; existing notes are unaffected.


## OpenAPI

````yaml DELETE /voice/api/v1/template/{template_id}
openapi: 3.0.1
info:
  title: EkaScribe Protocol API (MedScribeAlliance v0.1)
  version: '0.1'
  description: >
    Session-based medical voice capture API implementing the MedScribeAlliance
    Protocol v0.1. Discover service capabilities, create a session, stream audio
    chunks, then end the session to trigger asynchronous transcription and
    structured-template extraction.
servers:
  - url: https://api.eka.care
    description: Production server
  - url: https://api.dev.eka.care
    description: Development server
security: []
paths:
  /voice/api/v1/template/{template_id}:
    delete:
      tags:
        - templates
      summary: Delete Template
      description: >
        Archive (soft-delete) a custom template. The template stops appearing in
        List Templates and can no longer be used for new sessions; notes already
        generated with it are unaffected.
      parameters:
        - name: template_id
          in: path
          required: true
          description: Template ID to delete
          schema:
            type: string
            example: tpl_7d1a2b3c4d5e
      responses:
        '200':
          description: Template archived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              example:
                msg: archived successfully
        '404':
          description: Template not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - auth: []
components:
  schemas:
    MessageResponse:
      type: object
      properties:
        msg:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
              example: invalid_audio_format
            message:
              type: string
              description: Human-readable error message.
              example: Audio format 'audio/mp3' is not supported
            details:
              type: object
              additionalProperties: true
              description: Additional error context.
  securitySchemes:
    auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````