# revoke_skill_dir_trust

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/skills/trust/revoke_skill_dir_trust)

Remove trust for a skill directory.

Matches on both the approved (expanduser-only) key form that
`trust_skill_dir` stores and the fully-resolved form, so a caller can
revoke either by the path they see in `skills trust list` or by the
original symlink path.

## Signature

```python
revoke_skill_dir_trust(
    target_dir: Path | str,
    *,
    store_path: Path | None = None,
) -> RevokeResult
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `target_dir` | `Path \| str` | Yes | Directory to revoke. |
| `store_path` | `Path \| None` | No | Path to the trust store file. Defaults to `~/.deepagents/.state/skill_trust.json`. (default: `None`) |

## Returns

`RevokeResult`

`RevokeResult.REMOVED` if a matching entry was removed and persisted,

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/skills/trust.py#L368)