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

# prune_hub_links

> Prune unresolved and/or duplicate links from a hub note.

Prune unresolved and/or duplicate links from a hub note. Defaults to dry\_run; a real run requires confirmation. response\_format=concise drops removed\[] and prev\_hash on a real run; removed\_count and content\_hash stay, and a dry run keeps both.

| | |
| - | - |
| **Domain** | links |
| **Scopes** | `write:notes` |
| **Access** | write |
| **Tags** | `writes`, `destructive`, `hitl`, `domain:links` |
| **Profile** | full only |

## Annotations

| Annotation | Value |
| - | - |
| Read-only | no |
| Destructive | yes |
| Idempotent | no |
| Accepts an idempotency key | no |

`Idempotent` is the advisory MCP `idempotentHint`. `Destructive` is also `yes` for a tool that
asks for confirmation only on some calls.

## Confirmation (human in the loop)

The handler asks for confirmation only when a call crosses a boundary (for example an overwrite, a folder-boundary crossing or a bulk-cost floor); other calls need none.

* The confirmation binds to the vault paths the call names, which are also checked against the folder ACL.

## Input

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `vault` | `string` | | — | Vault id. May be omitted when only one vault is available. length 1–64; pattern `^[a-z0-9_-]+$` |
| `path` | `string` | yes | — | length 1–1024 |
| `remove_unresolved` | `boolean` | | `true` | — |
| `remove_duplicates` | `boolean` | | `true` | — |
| `dry_run` | `boolean` | | `true` | — |
| `prev_hash` | `string` | | — | — |
| `elicit_token` | `string` | | — | pattern `^[a-f0-9]{32}$` |
| `response_format` | `enum` | | — | concise returns only the high-signal fields; detailed (the shipped default) returns the full payload. Errors and safety warnings are never trimmed. When omitted, the server's tools.defaults.responseFormat applies. One of: `"concise"`, `"detailed"` |
| `verbosity` | `enum` | | — | Legacy alias for response\_format: terse = concise, full = detailed. One of: `"full"`, `"terse"` |

## Output

| Field | Type | Always present | Description |
| - | - | - | - |
| `vault` | `string` | yes | — |
| `path` | `string` | yes | — |
| `dry_run` | `boolean` | yes | — |
| `removed_count` | `integer` | yes | range ≥ -9007199254740991 |
| `removed` | `object[]` | | — |
| `removed[].target` | `string` | with parent | — |
| `removed[].line` | `integer` | with parent | range ≥ -9007199254740991 |
| `removed[].reason` | `enum` | with parent | One of: `"unresolved"`, `"duplicate"` |
| `prev_hash` | `string` | | — |
| `content_hash` | `string` | yes | — |

## Related tools

Other tools in the `links` domain: [`find_link_cycles`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_link_cycles/), [`find_orphans`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_orphans/), [`find_unresolved_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_unresolved_links/), [`get_backlinks`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_backlinks/), [`get_link_strength`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_link_strength/), [`get_outgoing_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_outgoing_links/), [`graph_centrality`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/graph_centrality/), [`graph_communities`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/graph_communities/), [`graph_path_between`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/graph_path_between/), [`rewrite_link`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/rewrite_link/), [`suggest_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/suggest_links/), [`vault_health_score`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/vault_health_score/).

Back to the [tool catalog](https://docs.the40thieves.dev/reliquary-tc/tools/tool-catalog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.