• Sign up
  • Docs
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
  • Developer Changelog
  • Elsewhere
  • Blog
  • Forum
  • Feedback
  • International sites
  • United States (English)
  • 日本 (日本語)
Box Developer Documentation
  • United States (English)
  • 日本 (日本語)
  • Quick Starts
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
    • Developer Changelog
    • UnreadMay 18th, 2022

      New Endpoints to Manage User Avatars

      FeatureImpactfulapi
    • UnreadMay 18th, 2022

      OAuth 2.0 Redirect URL Strict Checking Enabled

      FeatureImpactfulapi
    • UnreadMay 16th, 2022

      Box UI Elements v15.0.0 released

      FeatureImpactfului-elements
Log in
Tasks
Create a task Get information about a task Lists all tasks for a file Make changes to an existing task Delete a task
Assigning tasks
Assign a task to a user Unassign a task Change an assignment's message Get task assignment information List a task's assignments Change task assignment state

Delete a task

Guides Tasks Delete a task
Edit this page

Delete a task

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

cURL
curl -i -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)
  • 日本 (日本語)
  • ©2022 Box
  • Sitemap
  • Subscriptions
  • Terms of Use
  • Privacy Policy
  • Cookie Notification
  • Code samples provided under Unilicense