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

# Delete template

> Remove an existing template

## Overview

Removes an existing template from the WABA. The deletion is permanent.

<Warning>
  This action cannot be undone. Once deleted, the template will need to be created again and go through a new Meta approval process.
</Warning>

<Note>
  The `templateId` is obtained from the [List templates](/en/templates/list-templates) endpoint.
</Note>


## OpenAPI

````yaml en/templates/openapi.json DELETE /whatsapp/businesses/{wabaId}/templates/{templateId}
openapi: 3.1.0
info:
  title: Hub Message - Templates API
  description: API for managing WhatsApp Business message templates
  version: 1.0.0
servers:
  - url: https://api.hubmessage.io
security:
  - bearerAuth: []
paths:
  /whatsapp/businesses/{wabaId}/templates/{templateId}:
    delete:
      tags:
        - Templates
      summary: Delete template
      description: Removes an existing template from the WABA.
      operationId: deleteTemplate
      parameters:
        - name: wabaId
          in: path
          required: true
          description: WABA ID (obtained via List WABAs)
          schema:
            type: string
            example: '428083093730937'
        - name: templateId
          in: path
          required: true
          description: Template ID (obtained via List templates)
          schema:
            type: string
            example: '1900296177408890'
      responses:
        '200':
          description: Template deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
              example:
                success: true
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the operation was successful
    Error:
      type: object
      properties:
        error:
          type: integer
          description: Error code
        message:
          type: string
          description: Error description
  responses:
    Unauthorized:
      description: Invalid or missing token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 401
            message: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generated in the Hub Message Security panel

````