> ## 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.

# Disable Pii Redaction • AI Agent SDK

> disable_pii_redaction: Unregister the PII-redaction hook. No-op if never enabled.

# disable\_pii\_redaction

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**redact**](../modules/redact) module.

Unregister the PII-redaction hook. No-op if never enabled.

## Signature

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

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

## Uses

* `get_default_registry`
* `reg.unregister`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/redact.py#L213">
  `praisonaiagents/trace/redact.py` at line 213
</Card>
