Tool Reference
MoveToTrash
Delete a document (including a task), or a project (folder) by moving it to the trash, as the Delete action in the app does.
Starter documentation. Features and account details may differ from this deployment.
MoveToTrash
Delete a document (including a task), or a project (folder) by moving it to the trash, as the Delete action in the app does. Trashing a project also trashes everything inside it. Only the item's owner can trash it. Use only when the user explicitly asks to delete an item. Channels, email threads, and calendar events are not deleted with this tool.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
entityType | "document" | "project" | Yes | The kind of item to move to the trash. |
entityId | string | Yes | The id of the item to move to the trash. |