Views:

Deletes a batch of directory users belonging to the domain.

HTTP Request

DELETE https://<serviceURL>/api/v1/domains/<domain>/users

Request Parameters

Parameter

Required

Description

domain

Yes

Domain from which you want to delete directory users.

HTTP Request Example

DELETE https://<serviceURL>/api/v1/domains/sample1.com/users HTTP/1.1
Authorization: Basic c2FtcGxlOmZqZmo0OTBpNGpnaDAzM2dsajQzYXB3ZW1hMzEwdjEwamIxZ2lrM2oz
Content-Encoding: gzip, deflate
 
["user1","user2"]

HTTP Request Body

The request body is an array of local parts in user email addresses.

Note:

If you want to delete all the directory users, include [] as the only information in the request body.

Response

On success, the service sends back an HTTP 204 response with no output; otherwise, the response body contains error details. For more information about errors, see API Response Codes.

Status Code

Description

204

Successful.

No content will be returned in the response body.

Response Example

HTTP/1.1 204