truncate_table
Delete all rows from a table or feature class while preserving its schema, useful for resetting data without recreating the dataset.
Instructions
Delete every row from a table or feature class, keeping the schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |