deleteWorkItems

Contents

This mutation allows bulk deleting of multiple work items.

Query

deleteWorkItems ([WorkItemDeleteResponse!]!)
Bulk deletes multiple work items.

When a work item is deleted, its descendants at all levels are also deleted. For safety, this mutation will not delete work items with more than 1000 descendants. This is an attempt to prevent the case where a typo accidentally causes the enterprise’s top-level item to get deleted. Changes of that magnitude should be performed by a user, who can confirm they are correct.

Argument Type Description
items [DeleteWorkItemFields!]! A list of arguments to pass to deleteWorkItem. See that page for more details.

Example

mutation {
  deleteWorkItems(
    items: [
      {
        app: "App_1__app"
        type: "Program__t"
        id: "1"
      }, {
        app: "App_1__app"
        type: "Program__t"
        id: "2"
      }
    ]) {
    deleteCount
  }
}
{
  "data": {
    "deleteWorkItems": [
      {
        "deleteCount": 500
      },
      {
        "deleteCount": 20
      }
    ]
  }
}
Updated on September 9, 2025

Related Articles