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

# Delete Webhook

> Delete a specific webhook by its unique identifier. This permanently removes it and stops all deliveries.

**Party-scoped accounts:** you MUST pass the same party (`corporateUser` or `organization`) the webhook is bound to; you can only delete your own party's webhooks.



## OpenAPI

````yaml DELETE /client/events/deleteEvent/{id}
openapi: 3.0.3
info:
  title: Webhooks API
  version: 1.0.0
  description: >-
    APIs for managing webhook to receive real-time notifications about bill and
    report events.
servers:
  - url: https://v2.flabs.in
    description: Production Server
security: []
paths:
  /client/events/deleteEvent/{id}:
    delete:
      summary: Delete webhook
      description: >-
        Delete a specific webhook by its unique identifier. This permanently
        removes it and stops all deliveries.


        **Party-scoped accounts:** you MUST pass the same party (`corporateUser`
        or `organization`) the webhook is bound to; you can only delete your own
        party's webhooks.
      parameters:
        - name: id
          in: path
          required: true
          description: Unique identifier of the webhook to delete
          schema:
            type: string
          example: 68a51f702b9a428dce0da5e2
        - name: labID
          in: query
          required: true
          schema:
            type: string
          description: >-
            Flabs lab (branch) identifier. Fetch the list of labs via GET
            /client/labs.
        - name: corporateUser
          in: query
          required: false
          schema:
            type: string
          description: >-
            Party-scoped accounts only. The corporate the webhook is bound to.
            Pass either `corporateUser` or `organization`, not both.
        - name: organization
          in: query
          required: false
          schema:
            type: string
          description: >-
            Party-scoped accounts only. The doctor/hospital the webhook is bound
            to. Pass either `corporateUser` or `organization`, not both.
      responses:
        '200':
          description: Successfully deleted webhook
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Subscribed event deleted successfully
              example:
                success: true
                message: Subscribed event deleted successfully
        4XX:
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  status:
                    type: integer
                  message:
                    type: string
                  error:
                    type: object
                    properties:
                      details:
                        type: string
              example:
                success: false
                status: 401
                message: Unauthorized
                error:
                  details: Invalid client credentials
        5XX:
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  status:
                    type: integer
                  message:
                    type: string
                  error:
                    type: object
                    properties:
                      details:
                        type: string
              example:
                success: false
                status: 500
                message: Internal Server Error
                error:
                  details: An unexpected error occurred
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained from the authentication endpoint

````