DeleteSubgraph
Remove a subgraph from a variant and start composition, the same write that rover subgraph delete performs.
Returns the composition errors that the removal causes.
This deletes the subgraph from the variant and can break the running router.
Set dryRun to true first: the response then reports the composition result that the removal would produce, including updatedGateway, and deletes nothing.
Provide the graph ID, the variant name, and the subgraph name.
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": {
"graphId": "<graphId>",
"variant": "<variant>",
"subgraphName": "<subgraphName>"
},
"name": "DeleteSubgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Do not remove the service, but recompose without it and report any errors. | |
| graphId | Yes | ||
| variant | Yes | ||
| subgraphName | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |