Delete workspace file
delete_fileDelete a file from the server's workspace. With project_id, path is resolved inside that project's folder; without it, path is relative to the server workspace root.
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": {
"server_id": "<server_id>",
"path": "<path>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, e.g. "public/index.html". Relative to the project folder when project_id is given, otherwise to the server workspace root. | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| project_id | No | Optional. Resolve path inside this project's workspace folder instead of the server workspace root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path, as given. | |
| deleted | Yes | true once the file is gone. | |
| project_id | No | The project the path was resolved in. null for the server workspace root. |