Skip to main content
DELETE
Permanently removes the hook, every execution record written against it, and its deliveries, including any not yet sent, which are then never sent. This cannot be undone. To stop a hook without losing its history, use Toggle Hook instead.
Other hooks that list the deleted hook in triggerHookIds keep its ID. An afterLiquidation hook with a deleted trigger never acts again, because its trigger check finds fewer hooks than it lists and records Trigger condition not met. Remove the ID from those hooks with Update Hook.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.
string
required
Hook ID.

Response Fields

object

Error Codes