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

> Delete a default webhook from the workspace

## Overview

Deletes a default webhook. After deletion, Omni Z-API stops sending events to the configured URL, and the slot in the workspace limit of 5 is freed.

If it was the only default webhook subscribed to an event, channels without a webhook of their own stop delivering that event.

> [!WARNING]
>
> Deletion is permanent. To pause the webhook, use [Update default webhook](/en/webhooks/update-default-webhook.md) with `status: "DISABLED"`.

> [!NOTE]
>
> The `webhookId` comes from the [Create default webhook](/en/webhooks/create-default-webhook.md) or [List default webhooks](/en/webhooks/list-default-webhooks.md) response.


## OpenAPI

````yaml en/webhooks/openapi-default.json DELETE /v1/default-instance-webhooks/{webhookId}
openapi: 3.1.0
info:
  title: Omni Z-API - Workspace default webhook
  description: >-
    API to create and manage the workspace default webhook: a webhook without a
    channel that receives the events of every channel in the workspace that has
    no active webhook of its own. It accepts channel events, in the `DEFAULT`
    and `Z_API` formats, with up to 5 per workspace. It does not require the
    ENTERPRISE role: any valid secret key of an active workspace works.
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/default-instance-webhooks/{webhookId}:
    parameters:
      - name: webhookId
        in: path
        required: true
        description: Default webhook ID
        schema:
          type: string
          example: 5B7E3A90C2D14F6A8E1B2C3D4E5F6A7B
    delete:
      tags:
        - Default webhook
      summary: Delete default webhook
      description: >-
        Deletes a default webhook. It stops receiving events and no longer
        counts toward the workspace limit of 5.
      operationId: deleteDefaultInstanceWebhook
      responses:
        '204':
          description: Default webhook deleted
        '400':
          description: Missing or invalid secret key, or IP outside the workspace list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalidKey:
                  summary: Missing or invalid secret key
                  value:
                    error: Authorization invalid
                ipNotAllowed:
                  summary: IP outside the workspace's allowed IP list
                  value:
                    error: 203.0.113.10 not allowed
        '404':
          description: >-
            There is no default webhook with this id in the workspace. An id
            from another workspace, from a channel webhook or from a template
            webhook gets the same response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Webhook not found
        '422':
          description: Deleted or nonexistent workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Webhook management requires an active workspace
components:
  schemas:
    Error:
      type: object
      description: Error
      properties:
        error:
          type: string
          description: Error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generated in the Omni Z-API Security panel

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.