Delete note section
delete_note_sectionRemove an obsolete H2-H6 Markdown section and its subordinate headings from a note while preserving exact prior history with atomic writes and conditional expected_hash checks.
Instructions
Use this only to remove an explicitly obsolete H2-H6 Markdown section and all of its subordinate headings. Prefer lifecycle invalidation with set_frontmatter when the fact must remain queryable. Pass the note's current content_hash as expected_hash for CAS. The operation stores exact prior history, writes atomically, and refuses every level-1 heading. For duplicate titles, pass 1-based heading_occurrence with heading_level and the exact expected_hash; the ordinal follows document order for those hashed bytes. Do not use chunk_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| heading | Yes | ||
| rel_path | Yes | ||
| request_id | No | ||
| expected_hash | No | ||
| heading_level | No | ||
| heading_occurrence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | No | ||
| indexed | Yes | ||
| rel_path | No | ||
| replayed | No | ||
| committed | No | ||
| content_hash | Yes | ||
| operation_id | No |