delete_task
Deletes a FortiManager task record by task ID, or cancels and stops a running task, helping manage completed and active tasks in the task list.
Instructions
Delete a task record from FortiManager's task list.
Deletes a completed task's record, or cancels/stops a still-running one (per the How-To guide: "Deleting a task could be used to delete a completed task or cancelling/stopping a running task."). Complements list_tasks/get_task/wait_for_task in system_tools.py.
Args: task_id: Task ID number
Returns: dict: Delete result with keys: - status: "success" or "error" - message: Status or error message
Example: >>> result = await delete_task(11111)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "delete_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||