跳到主要内容
版本:latest

RemoveTask

删除指定 ID 的后台任务。若任务正在运行(状态 -1)则同时终止相关进程。

  • 路由POST /files
  • actionRemoveTask

输入参数

参数名称必选类型描述
actionString固定值 RemoveTask
idInteger任务 ID

输出参数

参数名称类型描述
statusBooleantrue 删除成功

示例

请求

POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=RemoveTask&id=999

响应

{"status": true, "msg": "任务已删除"}