• Sign up
  • Docs
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
  • Elsewhere
  • Blog
  • Forum
  • Feedback
  • International sites
  • United States (English)
  • 日本 (日本語)
Box Developer Documentation
  • United States (English)
  • 日本 (日本語)
  • Quick Starts
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
Log in
Tasks
Create a taskGet information about a taskLists all tasks for a fileMake changes to an existing taskDelete a task
Assigning tasks
Assign a task to a userUnassign a taskChange an assignment's messageGet task assignment informationList a task's assignmentsChange task assignment state
GuidesTasksDelete a task
Edit this page

Delete a task

Delete a task

To remove a task, call the DELETE /tasks/:task_id API with the id of the task.

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
	});

Related APIs

  • deleteRemove task

Related Guides

  • GuideCreate a task
  • GuideGet information about a task
  • GuideMake changes to an existing task
  • Box & Community
  • About Us
  • Platform Twitter
  • Developer Blog
  • Engineering Blog
  • Newsletter
  • Changelog
  • GitHub
  • Community GitHub
  • Tooling
  • Node SDK
  • Java SDK
  • Python SDK
  • .NET SDK
  • Box CLI
  • Box Skills Kit
  • Samples
  • Platform Samples
  • Skills Samples
  • Support
  • Support & Community
  • Create a ticket
  • Platform Forum
  • Product Feedback
  • API Status
  • International sites
  • United States (English)
  • 日本 (日本語)
  • ©2020 Box
  • Sitemap
  • Subscriptions
  • Terms of Use
  • Privacy Policy
  • Cookie Notification
  • Code samples provided under Unilicense