delete_file
Delete a project file by UUID, permanently removing it and all its methods/statements. This action is destructive and irreversible.
Instructions
Delete a file from the project by UUID. This permanently removes the file and all its methods/statements.
WARNING: This is destructive and cannot be undone. Make sure the file is not referenced elsewhere before deleting.
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": {
"directory": "<directory>",
"uuid": "<uuid>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | UUID of the directory containing the file (get from get_project directories array or get_file response) | |
| uuid | Yes | UUID of the file to delete |