Delete DataLens workbook
datalens_workbooks_deleteDelete a DataLens workbook and all its contents, including connections, datasets, charts, and dashboards. Use it to remove an entire workbook in one call instead of deleting each object separately.
Instructions
Delete a workbook with everything it holds: connections, datasets, charts, dashboards.
Deleting a workbook that is already deleted answers 500, not 404: after a server error, read the workbook before deleting it again.
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": {
"workbook_id": "<workbook_id>"
},
"name": "datalens_workbooks_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). | |
| workbook_id | Yes | Workbook id. |