Skip to main content
DELETE
Cancel Task

Cancel Task

Cancel a running or pending task. This terminates the task execution and releases associated resources.

Request

Path Parameters

Response

Examples

Use Cases

Timeout Handling

Cancel tasks that take too long:

User-Initiated Cancellation

Task Status After Cancellation

After cancellation, the task’s status will be cancelled:

Important Notes

Cancelling a task terminates its session. You cannot send follow-up messages to a cancelled task.
If a tool is currently executing when you cancel, it may complete before the cancellation takes effect. The task will still be marked as cancelled.

Errors