Delete Item

Delete a file or folder. By default, moves to recycle bin.

Parameters

ParameterTypeRequiredDescription
item_idstringRequiredID of the item to delete
single_versionbooleanOptionalIf true, only delete the current version (for files with version history)
force_syncbooleanOptionalIf true, force synchronous deletion

Examples

MCP Tool Call

{
  "name": "sharefile_deleteItem",
  "arguments": {
    "item_id": "example",
    "single_version": true,
    "force_sync": true
  }
}

REST API

curl -X POST https://api.syncello.io/v1/tools/sharefile/deleteItem \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "item_id": "example",
  "single_version": true,
  "force_sync": true
}'