delete_file
Removes an uploaded file permanently from xAI by specifying its file ID. Returns confirmation of deletion.
Instructions
Permanently delete an uploaded file from xAI.
Args:
file_id: ID of the file to remove.
Returns:
Confirmation string with the deleted file ID.
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 |
|---|---|---|---|
| file_id | Yes |