delete_entities
Delete multiple documents, files, or folders from an Overleaf project in one call, with path validation and per-item status reporting.
Instructions
Delete several documents, files, or folders in one call. confirmCount must equal the number of paths, else CONFIRMATION_MISMATCH. Every path is resolved before anything is deleted, so a missing one fails the call with NOT_FOUND and changes nothing. Deleting a folder removes everything inside it, so list the folder alone, not its contents too. Continues past a failed delete unless stopOnError, and returns status, completed, failed, and remaining. Confirm the list with the user first.
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>",
"paths": "<paths>",
"confirmCount": "<confirmCount>"
},
"name": "delete_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Project paths to delete | |
| projectId | Yes | Overleaf project ID | |
| stopOnError | No | Stop at the first failure instead of continuing | |
| confirmCount | Yes | The number of paths, repeated after confirming the list with the user |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | ||
| status | Yes | ||
| completed | Yes | ||
| remaining | Yes |