> ## 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.

# Remover webhook de template

> Remova permanentemente um webhook de template

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';

## Conceituação

Remove permanentemente um webhook de template. Após a exclusão, o {projectName} para imediatamente de enviar eventos de template para a URL configurada.

<Warning>
  A exclusão é permanente. Se precisar apenas pausar o webhook temporariamente, use o endpoint [Atualizar webhook de template](/webhooks/update-template-webhook) com `status: "DISABLED"` em vez de deletar.
</Warning>

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

<Note>
  O `webhookId` é obtido no retorno do endpoint [Criar webhook de template](/webhooks/create-template-webhook) ou [Listar webhooks de template](/webhooks/list-template-webhooks).
</Note>


## OpenAPI

````yaml pt/webhooks/openapi-template.json DELETE /v1/webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Omni Z-API - Webhooks de Template
  description: >-
    API para criar e gerenciar webhooks de template — endpoints que recebem os
    eventos de template do WhatsApp e não dependem de uma instância
    (`instanceId` gravado como `null`). Requer role ENTERPRISE. Convivem com as
    rotas de webhook por instância/canal, que permanecem inalteradas.
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/webhooks/{webhookId}:
    delete:
      tags:
        - Webhooks de template
      summary: Remover webhook de template
      description: >-
        Remove permanentemente o webhook de template. Após a exclusão, nenhum
        evento de template é mais entregue na URL configurada.
      operationId: deleteTemplateWebhook
      parameters:
        - name: webhookId
          in: path
          required: true
          description: ID do webhook de template
          schema:
            type: string
            example: 8F2C00000000000000000000000000A1
      responses:
        '204':
          description: Webhook removido com sucesso. Nenhum conteúdo retornado.
        '404':
          description: Webhook não encontrado para o tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Webhook not found
        '422':
          description: Conta sem role ENTERPRISE
          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 gerada no painel de Segurança do Omni Z-API

````