Delete a gateway
delete_gatewayDelete a gateway
Deletes it. Keys that had it as their default go back to none, so their requests run as without a gateway; a request still naming it is refused by the Model API (400 gateway_not_found). Both follow within about a minute: the router keeps a key's gateway and the account's gateway list for about 60 seconds, so until then a request may still run through the deleted gateway. 204 with no body.
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": {
"name": "<name>"
},
"name": "delete_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The gateway's name. |