file_delete
Permanently removes one or more workspace files, reporting per-file success or errors; use after code_callers or code_grep confirms nothing references them.
Instructions
Deletes one or more files from a workspace for good: no backup and no recycle bin; only git can bring back a tracked file. Each file is handled on its own, so some can succeed while others fail. A missing file is an error for that entry; a folder path is refused (use folder_delete). At most 50 paths per call. BLOCKED: files in restricted folders (bin, obj, .git and the like), files that hold secrets, keys or databases, and anything the workspace's access rules hide. Saved flows whose steps lived in a deleted file are named in the reply, to update with memorise. WHEN TO USE: removing files that are no longer needed, after code_callers or code_grep shows nothing still uses them. To rename or move instead use file_move; to empty a file use file_write. RETURNS: one line per file: deleted, or the error.
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": {
"workspace": "<workspace>",
"pathsJson": "<pathsJson>"
},
"name": "file_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the files guide first in the result. Use on your first files call, or when told it changed. | |
| pathsJson | Yes | JSON array of file paths relative to the workspace root: ["Services/OldService.cs", "Services/IOldService.cs"]. Files only, no folders or wildcards. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) |