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

# unregister • AI Agent SDK

> unregister: Unregister a hook by ID.

# unregister

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**HookRegistry**](../classes/HookRegistry) class in the [**registry**](../modules/registry) module.

Unregister a hook by ID.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def unregister(hook_id: str) -> bool
```

## Parameters

<ParamField query="hook_id" type="str" required={true}>
  The hook ID to unregister
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if found and removed, False otherwise
</ResponseField>

## Uses

* `logger.debug`

## Used By

* [`remove_hook`](../functions/remove_hook)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/registry.py#L207">
  `praisonaiagents/hooks/registry.py` at line 207
</Card>
