Delete a File
litewrite_delete_fileDelete a file or directory from a Litewrite project permanently. This action cannot be undone.
Instructions
Delete a file (or directory) from a Litewrite project (POST /api/internal/files/delete). This is irreversible.
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": {
"projectId": "<projectId>",
"filePath": "<filePath>"
},
"name": "litewrite_delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path relative to the project root | |
| projectId | Yes | The Litewrite project id |