跳到主要内容

deleteTenantClients

deleteTenantClients()

DELETE /api/2.0/oauth2/clients/tenant

Delete all tenant OAuth2 clients

Deletes every client registered in the current tenant and answers 200 with an empty body. Only an administrator may call it - for a plain user or a guest it is refused with 403 - and it removes the clients of all users of the tenant, not only those of the caller. The authorizations and consents of the deleted clients are cleaned up asynchronously on the authorization service, and the tenant's client cache is dropped as part of the call. Concurrent modification that survives the retries is reported as 400. The operation cannot be undone, and the response does not say how many clients were removed.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200Client successfully deleted--
400The clients could not be deleted because of concurrent modificationProblemDetail-
403Insufficient permissions to delete tenant clientsProblemDetail-
429Too many requests - rate limit exceededProblemDetail-
500Internal server error occurredProblemDetail-
405The HTTP method is not allowed for this pathProblemDetail-
406The Accept header does not allow application/jsonProblemDetail-

Return type​

null (empty response body)

Authorization​

x-signature

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json