Delete a user

更新时间:
复制 MD 格式

Deletes a user via OpenAPI.

Supported editions

Enterprise Dedicated Edition

Service endpoints

Get the service endpoint and replace {domain} in the API request syntax with your endpoint .

Authorization

Product

Resource

Required permission

organization settings

user

read and write

Request syntax

DELETE https://{domain}/oapi/v1/platform/users/{idOrUsername}

Request

Delete a user by id

curl -X 'DELETE' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/users/0eddcebb-a9ed-45a9-8225-7d5eff68****' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Delete a user by Username

curl -X 'DELETE' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/users/doc-test1' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Request headers

x-yunxiao-token string (Required)

The access token. See Access token for details.

Example: pt-0fh3****0fbG_35af****0484.

Request parameters

idOrUsername string (Required)

The user ID or login name.

Provide either the user ID or the login name.

Response parameters

None {}

Error codes

For more information, see Error codes.