delete_toc
Delete a specific table of contents from a Word file by index. Backs up automatically and refuses to modify documents open in Word.
Instructions
Delete one TOC-family field by index (read_toc's tocs list order). Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| which | No | ||
| backup | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||