DELETE/users/{userId}

Deletes a member. Note that administrators cannot be deleted.

Caution

  • Deleted members have a 7-day grace period before their data is permanently deleted.
  • Note that the message room data of the deleted members is immediately deleted as they automatically "leave" the message room and cannot be recovered even if they are undeleted.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

user
directory

HTTP Request

DELETEhttps://www.worksapis.com/v1.0/users/{userId}

Path Parameters

ParameterTypeDescription
userId string 

Member ID
- Email address
- Resource ID
- External key in "externalKey:{externalKey}" format


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 204

No Content

HTTP 400

Bad Request

HTTP 404

Not Found