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

> Permanently remove a webhook from a channel

## Overview

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

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

<Note>
  This endpoint requires the **ENTERPRISE** role on your account.
</Note>

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


## OpenAPI

````yaml en/webhooks/openapi.json DELETE /v1/channels/{channelId}/webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Hub Message - Webhooks API
  description: >-
    API to create and manage webhook endpoints per channel. Requires ENTERPRISE
    role.
  version: 1.0.0
servers:
  - url: https://api.hubmessage.io
security:
  - bearerAuth: []
paths:
  /v1/channels/{channelId}/webhooks/{webhookId}:
    delete:
      tags:
        - Webhooks
      summary: Delete webhook
      description: >-
        Permanently removes the webhook. From deletion, no events are delivered
        to the configured URL.
      operationId: deleteWebhook
      parameters:
        - name: channelId
          in: path
          required: true
          description: Channel ID
          schema:
            type: string
            example: 019E4C54B1B375A28970B605CA9B03C3
        - name: webhookId
          in: path
          required: true
          description: Webhook ID
          schema:
            type: string
            example: A1B2C3D4E5F6789012345678901234AB
      responses:
        '204':
          description: Webhook deleted successfully. No content returned.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Webhook not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 404
                message: Webhook not found
        '422':
          description: Business rule violation — account does not have ENTERPRISE role
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 422
                message: This action requires ENTERPRISE role
components:
  responses:
    Unauthorized:
      description: Invalid or missing token.
      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 generated in the Hub Message Security panel

````