delete_template_relationship
Remove a relationship matching the specified endpoints from a closed .pbit template by editing DataModelSchema JSON on disk. Fails if no such relationship exists.
Instructions
Delete the relationship whose endpoints match from/to from a closed .pbit template's model, editing the DataModelSchema JSON on disk with no Power BI Desktop. Fails if no such relationship exists. Written back in place (with a .bak guard).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toTable | Yes | the 'one' side table | |
| pbitPath | Yes | path to the closed .pbit template | |
| toColumn | Yes | the 'one' side column | |
| fromTable | Yes | the 'many' side table | |
| fromColumn | Yes | the 'many' side column |