---
title: "Delete the specified work activities of a work order"
method: DELETE
path: "/workorders/{workorderId}/workactivities"
tags: ["WorkActivities"]
---

# Delete the specified work activities of a work order

`DELETE /workorders/{workorderId}/workactivities`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/workorders/{workorderId}/workactivities`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/workorders/:workorderId/workactivities/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete one or more work activities of the specified work order. When you pass multiple work activity IDs, the request will succeed if at least one ID is valid.
            <br />***Note:*** Both subscribers and providers can use this method.

## Path parameters

- `workorderId` integer, required

## Query parameters

- `workactivityIds` integer[], required

## Response `204`

The specified work activities are deleted, and the response is intentionally blank.

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 502 — WorkOrder not found 502 — Work activities are not found 804 — User has no permissions to perform this action
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `500`: The server was unable to complete the request due to an internal error.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
