Skip to main content
Glama

Delete Note

delete_note
Destructive

Delete a note by moving it to the .trash folder for recovery or permanently remove it with optional reference cleanup across the vault.

Instructions

Delete a note. By default the file is moved to the vault's .trash folder (recoverable inside Obsidian); pass permanent=true to unlink it from disk immediately. When permanent=true, you can additionally pass removeReferences=true to strip wikilinks and markdown links to the deleted file across the vault (embeds are removed entirely; plain links fall back to their visible text). References are never rewritten when the file moves to .trash, since trashed files are recoverable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path from vault root to the note to delete (e.g., 'archive/old.md'). Extension optional.
permanentNoIf true, delete the file permanently from disk; if false (default), move it to the vault's .trash folder so it can be recovered.
removeReferencesNoIf true (and permanent=true), strip wikilinks and markdown links pointing at the deleted file across the vault. Embeds are removed entirely; plain links fall back to their visible text (alias if present, else the deleted file's basename). Ignored when permanent=false. Default false — opt in explicitly because the rewrite is irreversible.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations mark `destructiveHint=true`, and the description elaborates on the destructive behavior: moving to recoverable trash vs permanent deletion, and the irreversible nature of reference removal. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each adding value. The first sentence states the main action and default behavior. The second and third cover conditional behaviors. Efficient but could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all key behaviors: trash vs permanent, reference handling, and the edge case where `removeReferences` is ignored when `permanent=false`. No output schema, but description suffices for agent decision-making.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with good schema descriptions. The description adds value beyond schema by explaining that references are never rewritten when trashed, and how plain links fall back. This helps agents understand parameter interactions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool deletes a note, specifying the default behavior (move to trash) and the alternative (permanent deletion). It distinguishes itself from siblings like `move_note` (moves without deleting) and `create_note` (creates).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use `permanent=true` vs default trash, and when `removeReferences` is applicable. It notes that references are never rewritten for trashed files. However, it could explicitly mention alternatives like `move_note` for non-deleting moves.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rps321321/obsidian-mcp-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server