Manage Applications

    Delete task

    delete
    https://api.box.com/2.0
    /tasks/:task_id

    Deletes a specific task.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    12345

    The ID of the task.

    Response

    none

    An empty response will be returned when the task was successfully deleted.

    application/jsonClient Error

    Returns an error if the task for the given ID does not exist or is inaccessible to your account.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

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