Unassign a task

Unassign a task

To unassign a task, you will need to provide the DELETE /task_assignments API with the id of the task assignment.

cURL
curl -X DELETE https://api.box.com/2.0/task_assignments/12345 \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
await client.TasksManager.DeleteTaskAssignmentAsync("12345");
Java
BoxTaskAssignment taskAssignment = new BoxTaskAssignment(api, "id");
taskAssignment.delete();
Python
client.task_assignment(assignment_id='12345').delete()
print('The task assignment was successfully delete!')
Node
client.tasks.deleteAssignment('12345')
	.then(() => {
		// deletion succeeded — no value returned
	});

Permissions

The user deleting the assignment needs to be a collaborator on the file.