tasks.tasks.delete
Deletes a specified task from a task list; if assigned, removes both the assigned and original task in Docs and Chat Spaces. Use to clear tasks permanently or preview with dry_run.
Instructions
Deletes the specified task from the task list. If the task is assigned, both the assigned task and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there [HTTP DELETE] — removes the resource; irreversible unless the API documents a trash/undo flow; refused under --readonly safety profiles. Returns the post-delete resource state (or empty) as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: clear, get, insert, list, move, patch, update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | [URL path segment] Task identifier. | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| tasklist | Yes | [URL path segment] Task list identifier. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. |