Numbers: delete
numbers_deleteDeletes rows or columns from a Numbers file at a given position. Refuses tables with formulas or merged cells; undo with iwork_restore_backup. Use dry_run to preview changes.
Instructions
Delete count rows or columns (what = rows | columns) starting at 1-based position at. Remaining cells are verified. Refused in tables with formulas or merged cells. Undo with iwork_restore_backup. dry_run=true previews the change on a copy without touching the file. Use to remove rows or columns. Not for clearing values (use numbers_edit_cell with null). Refused in tables with formulas or merges; undo with iwork_restore_backup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | 1-based position of the first one to delete. | |
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| what | Yes | rows | columns. | |
| count | No | How many to delete. | |
| sheet | No | Sheet name. Omit when the file has one sheet (iwork_read lists sheets and tables). | |
| table | No | Table name on that sheet. Omit when the sheet has one table. | |
| dry_run | No | true = make the change on a throwaway copy, run every check, and return what would change; the file itself is not touched. Use it before broad or risky edits and show the user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||