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

# Delete template webhook

> Permanently remove a template webhook

export const EnterpriseText = ({lang = 'pt'}) => ({
  pt: <>Este endpoint requer a role <strong>ENTERPRISE</strong> na sua conta.</>,
  en: <>This endpoint requires the <strong>ENTERPRISE</strong> role on your account.</>,
  es: <>Este endpoint requiere el rol <strong>ENTERPRISE</strong> en tu cuenta.</>
})[lang];

export const projectName = 'Omni Z-API';

## Overview

Permanently removes a template webhook. After deletion, {projectName} immediately stops sending template events to the configured URL.

<Warning>
  Deletion is permanent. If you only need to pause the webhook temporarily, use the [Update template webhook](/en/webhooks/update-template-webhook) endpoint with `status: "DISABLED"` instead of deleting.
</Warning>

<Note>
  <EnterpriseText lang="en" />
</Note>

<Note>
  The `webhookId` is obtained from the [Create template webhook](/en/webhooks/create-template-webhook) or [List template webhooks](/en/webhooks/list-template-webhooks) endpoint.
</Note>


## OpenAPI

````yaml en/webhooks/openapi-template.json DELETE /v1/webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Omni Z-API - Template Webhooks
  description: >-
    API to create and manage template webhooks — endpoints that receive WhatsApp
    template events and do not depend on an instance (`instanceId` stored as
    `null`). Requires ENTERPRISE role. Coexists with the per-instance/channel
    webhook routes, which remain unchanged.
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/webhooks/{webhookId}:
    delete:
      tags:
        - Template webhooks
      summary: Delete template webhook
      description: >-
        Permanently removes the template webhook. After deletion, no more
        template events are delivered to the configured URL.
      operationId: deleteTemplateWebhook
      parameters:
        - name: webhookId
          in: path
          required: true
          description: Template webhook ID
          schema:
            type: string
            example: 8F2C00000000000000000000000000A1
      responses:
        '204':
          description: Webhook removed successfully. No content returned.
        '404':
          description: Webhook not found for the tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Webhook not found
        '422':
          description: Account without ENTERPRISE role
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: This action requires ENTERPRISE role
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generated in the Omni Z-API Security panel

````