remove_dataset_field
Remove a data-bound field from a dataset, refusing deletion if the field is still referenced unless force is enabled. Use after refresh_dataset_fields to clean up orphaned fields.
Instructions
Remove a data-bound by name (one with ). Symmetric counterpart to remove_calculated_field. Refuses on calculated fields (use remove_calculated_field instead) and on still-referenced fields (any expression containing Fields!.Value / .IsMissing / .Count). Pass force=True to delete anyway. Closes the cookbook flow: refresh_dataset_fields lists orphans, remove_dataset_field drops them. Returns {dataset, removed, kind: 'DataBoundField'}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| force | No | Default false: refuse if the field is still referenced anywhere. true: delete anyway (prefer fixing the references first). | |
| field_name | Yes | ||
| dataset_name | Yes |