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

# Delete Hook

> Delete a hook and its execution history

Permanently removes the hook and every execution record written against it. This cannot be undone. To stop a hook without losing its history, use [Toggle Hook](/endpoints/external-securities-lending/toggle-hook) instead.

## Path Parameters

<ParamField path="marketId" type="string" required>Market ID.</ParamField>
<ParamField path="hookId" type="string" required>Hook ID.</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.trusset.org/lending-external-securities/api/hooks/{marketId}/{hookId}" \
    -H "X-API-Key: trusset_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": { "deleted": true }
  }
  ```
</ResponseExample>
