Delete DataLens connection
datalens_connections_deleteDelete a DataLens connection by ID; datasets built on it lose their source and the API cannot restore it. Use dry_run to preview the request before committing.
Instructions
Delete a connection; the datasets built on it lose their source.
The API has no way to bring it back, and a chart that reads through it keeps naming its id (measured).
The interface lists what was deleted under Service settings, Deleted objects, with a Restore button (measured: the entry appears there; restoring was not tried).
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": {
"connection_id": "<connection_id>"
},
"name": "datalens_connections_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| connection_id | Yes | Connection id. |