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

# Eliminar webhook

> Elimina permanentemente un webhook de un canal

export const projectName = 'Omni Z-API';

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

## Conceptos

Elimina permanentemente un webhook. Tras el borrado, {projectName} deja de enviar eventos a la URL configurada de forma inmediata.

<Warning>
  El borrado es permanente e inmediato. Si solo necesitas pausar el webhook temporalmente, usa el endpoint [Actualizar webhook](/es/webhooks/update-webhook) con `status: "DISABLED"` en lugar de eliminarlo.
</Warning>

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

<Note>
  El `webhookId` se obtiene en la respuesta del endpoint [Crear webhook](/es/webhooks/create-webhook) o [Listar webhooks](/es/webhooks/list-webhooks).
</Note>


## OpenAPI

````yaml es/webhooks/openapi.json DELETE /v1/channels/{channelId}/webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Omni Z-API - API de webhooks
  description: >-
    API para crear y gestionar endpoints de webhook por canal. Requiere el rol
    ENTERPRISE.
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/channels/{channelId}/webhooks/{webhookId}:
    delete:
      tags:
        - Webhooks
      summary: Eliminar webhook
      description: >-
        Elimina permanentemente el webhook. A partir del borrado, ya no se
        entrega ningún evento en la URL configurada.
      operationId: deleteWebhook
      parameters:
        - name: channelId
          in: path
          required: true
          description: ID del canal
          schema:
            type: string
            example: 019E4C54B1B375A28970B605CA9B03C3
        - name: webhookId
          in: path
          required: true
          description: ID del webhook
          schema:
            type: string
            example: A1B2C3D4E5F6789012345678901234AB
      responses:
        '204':
          description: Webhook eliminado correctamente. No se devuelve contenido.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Webhook no encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 404
                message: Webhook not found
        '422':
          description: 'Regla de negocio incumplida: cuenta sin el rol ENTERPRISE'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 422
                message: This action requires ENTERPRISE role
components:
  responses:
    Unauthorized:
      description: Token no válido o ausente.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 401
            message: Unauthorized
  schemas:
    Error:
      type: object
      properties:
        error:
          type: integer
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generada en el panel de Seguridad de Omni Z-API

````