All Products
Search
Document Center

AI Coding Assistant Lingma:Delete all user licenses

Last Updated:Mar 27, 2026

An organization administrator can delete all application licenses for a specified user.

Supported editions

Enterprise Dedicated Edition

Service endpoints

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

Authorization information

Product

Resource

Required permission

organization settings

license

Read and write

Request syntax

DELETE https://{domain}/oapi/v1/platform/users/{userId}/licenses:clear

Request

Delete all user licenses

curl -X 'DELETE' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/users/3a41****3eca/licenses:clear' \
  -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

userId string (Required)

The ID of the user. To get this ID, call the ListUsers API.

Response parameters

None {}

Error codes

For more information, see Error codes.