delete_work_item
Remove a specific work item from Azure DevOps by providing its unique ID to clean up project data and maintain organized workflows.
Instructions
Deletes a work item by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_item_id | Yes | The ID of the work item to delete. |
Implementation Reference
- mcp_azure_devops/server.py:920-926 (handler)MCP server handler for 'delete_work_item' tool that calls the client method and formats the response.elif name == "delete_work_item": delete_result = self.client.delete_work_item(**arguments) return { "message": f"Work item {arguments['work_item_id']} has been deleted successfully.", "deleted_date": delete_result.deleted_date.isoformat() if delete_result.deleted_date else None, "deleted_by": delete_result.deleted_by.display_name if delete_result.deleted_by else None }
- mcp_azure_devops/server.py:161-175 (registration)Registration of the 'delete_work_item' tool including its name, description, and input schema.types.Tool( name="delete_work_item", description="Deletes a work item by its ID.", inputSchema={ "type": "object", "properties": { "work_item_id": { "type": "integer", "description": "The ID of the work item to delete." }, }, "required": ["work_item_id"], "additionalProperties": False } ),
- Implementation of delete_work_item in AzureDevOpsClient class that invokes the Azure DevOps Work Item Tracking client to delete the work item.def delete_work_item(self, work_item_id): return self.work_item_tracking_client.delete_work_item(id=work_item_id)