files_delete
Deletes (clears) cells in an A1 range, INCLUDING code cells (Python/Formula), charts and data tables — a touched table is removed entirely. Requires edit permission. Use this to remove or fix content created by files_write/files_run (which cannot overwrite a table). Within the data rows of a server table the range clears their values through the tables service and the table stays; a range covering all of its data rows removes the table, as Delete does in the app. Writes synchronously via collab. Signature: files_delete(file_uuid, range, sheet?).
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": {
"file_uuid": "<file_uuid>",
"range": "<range>"
},
"name": "files_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 range to clear, e.g. 'A1' or 'A1:C10'. Any data table intersecting the range is removed entirely. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| file_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| range | Yes | ||
| cleared | Yes | ||
| file_uuid | Yes | ||
| sequence_number | No |