---
title: "Remove users (custodians) from a legal hold policy - v4"
method: DELETE
path: "/legalholds/v4/policies/{policyId}/users"
tags: ["Legal Hold"]
---

# Remove users (custodians) from a legal hold policy - v4

`DELETE /legalholds/v4/policies/{policyId}/users`

## Request

- Base URL: `https://apis.druva.com/insync`
- URL: `https://apis.druva.com/insync/legalholds/v4/policies/{policyId}/users`
- Auth: API key in header `Authorization`

Remove users from a legal hold policy within Druva inSync. Note that a maximum of 500 email addresses can be processed at a time. Any additional addresses provided beyond this limit will be ignored, and this will be highlighted in the response message.

## Path parameters

- `policyId` integer, required

## Request body

- RequestV4CustodianEmails
  - `emailIDs` string[], required: Email addresses of custodians to add or remove. The list must not be empty. Only the first 500 addresses are processed.

## Response `200`

OK

- ResponseV4DeleteCustodians
  - `usersDeleted` string[]: Email addresses that were removed from the legal hold policy.
  - `usersNotDeleted` string[]: If a user is not currently on legal hold or has previously been removed from it, their email address will be returned in this list when attempting to delete them from a legal hold policy.
  - `notInSyncMails` string[]: If a user is not a valid inSync user when being removed from a legal hold policy, their email address will be included in this list.
  - `message` string: Outcome summary. Contains details indicating if any users were previously not on legal hold, along with a notification if the request exceeded the limit and was capped at 500 emails.

## Other responses

- `400`: Bad Request. Invalid request parameters: policyId must be an integer, emailIDs cannot be empty, and all provided emails must have a valid format.
- `401`: Unauthorized: You are unauthorized or lack the required administrative permissions for this policy.
- `403`: Access denied: Callers using developer or client credentials lack sufficient permissions. Details: https://help.druva.com/en/articles/15069296
- `404`: Not found
- `500`: Internal Server Error: Failed to remove either the custodians or Additional Data Collection devices.

---

[API](https://skmtc.dev/druva/apis/insync-cloud.md) - [All operations](https://skmtc.dev/druva/apis/insync-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/insync-cloud/revisions/a0ce6d05033c?raw)
