---
title: "Remove customers"
method: DELETE
path: "/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer"
tags: ["Servicedesk"]
---

# Remove customers

`DELETE /rest/servicedeskapi/servicedesk/{serviceDeskId}/customer`

This method removes one or more customers from a service desk. The service desk must have closed access. If any of the passed customers are not associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

**[Permissions](#permissions) required**: Services desk administrator

## Path parameters

- `serviceDeskId` string, required

## Request body

- ServiceDeskCustomerDTO
  - `accountIds` string[] — List of users, specified by account IDs, to add to or remove from a service desk.
  - `usernames` string[] — This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. Use `accountIds` instead.

## Response `204`

Returned if the customers were removed from the service desk, or any of the customers were not associated with the service desk.

## Other responses

- `400` — Returned if the service desk has public signup or open access enabled.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the user does not have permission to complete this request.
- `404` — Returned if the service desk does not exist.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/atlassian/apis/service-management-public-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/service-management-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/service-management-public-rest-api/versions/0c91941a1ff9/schema)
