Delete file
delete_fileRemove a file from a space's Files to Trash and off its pins; restoring it in the app within 30 days pins it again. A picture, clip or sound (media_id) is refused while the space collects it, names it as an @element or has it on a roll prompt, and the refusal says where.
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": {
"space_id": "<space_id>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_id | No | Instead: a picture, clip or sound from list_space media. | |
| space_id | Yes | The space whose Files hold it. | |
| space_file_id | No | An uploaded document from list_space files. |