delete_task
Cancel a pending task in the GenieACS queue by providing the task ID. Useful for removing mistakenly queued firmware downloads or reboot commands before execution.
Instructions
Delete a pending task from the GenieACS task queue. Use this tool to cancel a task that was queued but has not yet been executed by the CPE, such as a mistakenly queued firmware download or an unwanted reboot. The task_id is the _id field from the task document, obtainable via the genieacs://tasks/{id} resource. Returns a 503 error if the device is currently in an active CWMP session (the task cannot be deleted while the device is communicating with the ACS). Example: delete_task(task_id="67abc123def456"). Limitations: only pending tasks can be deleted. Completed or in-progress tasks cannot be removed. Use retry_task instead if the task faulted and you want to re-run it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task identifier (_id field from the task document). Obtain task IDs from the genieacs://tasks/{deviceId} resource. |