delete_file
Irreversibly delete a file from the File Manager. Any campaigns or templates referencing the file will show broken images.
Instructions
Permanently delete a file from the File Manager.
Irreversible. Any campaign or template still referencing the file's hosted URL will show a broken image afterwards. Use list_files to find the file_id and get_file to confirm the target before deleting.
Args: file_id: File ID (numeric, as a string) from list_files.
Returns: JSON with status 'success' on deletion, or an error object if file_id is invalid.
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_id": "<file_id>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| file_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |