---
updatedAt: 2026-05-07T11:40:56.000Z
agentTools:
  projectIndex: https://docs.testlify.com/llms.txt
---

# Delete a webhook

Deletes a webhook endpoint and soft-deletes the database record.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Testlify API"
  },
  "servers": [
    {
      "url": "https://api.testlify.com"
    }
  ],
  "tags": [
    {
      "name": "Webhook V2",
      "description": "CRUD operations for webhook endpoints"
    }
  ],
  "paths": {
    "/v2/webhook/{webhookId}": {
      "delete": {
        "tags": [
          "Webhook V2"
        ],
        "summary": "Delete a webhook",
        "description": "Deletes a webhook endpoint and soft-deletes the database record.",
        "operationId": "v2DeleteWebhook",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "description": "The webhook endpoint database ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook deleted successfully"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorMessage"
                }
              }
            }
          },
          "404": {
            "description": "Webhook not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorMessage"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ErrorMessage": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "statusCode": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```