remove_dataview_field_tool
Remove Dataview inline fields from Obsidian notes. Clean up obsolete metadata, remove duplicates, or migrate fields to frontmatter.
Instructions
Remove a Dataview inline field from a note (filesystem-native, offline).
Removes all occurrences of a field by key (canonicalized matching), or a specific occurrence if line_number is provided.
For inline fields (bracket/paren syntax), removes only the field while preserving surrounding text. For full-line fields, removes the entire line.
When to use:
Cleaning up obsolete metadata
Removing duplicate fields
Migrating fields to frontmatter
Batch field removal
Returns: Success status, removed key, and canonical key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to note file (relative to vault) | |
| key | Yes | Field key to remove (will be canonicalized) | |
| line_number | No | Optional specific line number (if multiple fields with same key) | |
| vault_path | No | Path to vault (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |