delete_columns
Remove columns from Word tables by 0-based index. Handles merged cells by shrinking them, removes single cells, and keeps the grid consistent with automatic backup.
Instructions
Delete grid columns (0-based list). Merge-aware: merged cells shrink, single cells are removed, the grid stays consistent. 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 |
|---|---|---|---|
| backup | No | ||
| columns | Yes | ||
| file_path | Yes | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||