tc_delete_item
Delete a folder or file in Trimble Connect. This destructive action requires confirm=true and write access. Use force to remove non-empty folder trees; no API restore exists.
Instructions
Delete a folder or a file. DESTRUCTIVE — there is no undo via the API.
Trimble Connect deletes are soft (an admin can restore from the web UI), but this API offers NO restore endpoint. Requires TC_ENABLE_WRITE=1 AND confirm=true. Always show the user what will be deleted first.
Args: project_id: Project ID. item_id: Folder or file ID. confirm: Must be true — safety gate. item_type: "FOLDER" (default) or "FILE". force: Required to delete a folder that is NOT empty (deletes the whole subtree, runs as a background job).
Returns: {"deleted": true, ...} or an error explaining what is missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| confirm | No | ||
| item_id | Yes | ||
| item_type | No | FOLDER | |
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |