Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15
Learn more and register!Removes a task from a file.
12345
The ID of the task.
Returns an empty response when the task was successfully deleted.
Returns an error when the task could not be found or the user does not have access to the file the task is assigned to.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/tasks/12345" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.TasksManager.DeleteTaskAsync("11111");
BoxTask task = new BoxTask(api, "id");
task.delete();
client.client.task('12345').delete()
print('The task was successfully delete!')
client.tasks.delete('11111')
.then(() => {
// deletion succeeded — no value returned
});