Skip to content
Get started

Archive a task

$ handinger tasks delete
DELETE/api/tasks/{taskId}

Archive a task so it stops appearing in GET /tasks results. Turns and files are retained for audit purposes. Only the worker creator can archive a task.

ParametersExpand Collapse
--task-id: string

Task id returned by the create task endpoint.

ReturnsExpand Collapse
delete_task_response: object { archived }
archived: boolean

Archive a task

handinger tasks delete \
  --api-key 'My API Key' \
  --task-id tsk_01HZY31W2SZJ8MJ2FQTR3M1K9D
{
  "archived": true
}
Returns Examples
{
  "archived": true
}