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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pbitPath": "<pbitPath>",
"fromTable": "<fromTable>",
"fromColumn": "<fromColumn>",
"toTable": "<toTable>",
"toColumn": "<toColumn>"
},
"name": "delete_template_relationship"
}
}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 |