Skip to content

Delete Client

Delete a client application from a project. Default clients cannot be deleted.

Endpoint

/api/v1/projects/{project_id}/clients/{client_id}

Method

DELETE

Path Parameters

ParameterTypeRequiredDescription
project_idstringYesUnique ID of the project
client_idstringYesUnique ID of the client to delete

Headers

HeaderRequiredDescription
AuthorizationYesBearer access token: Bearer <access_token>

Required Permission

clients:delete

Examples

curl --request DELETE \
  --url https://auth.roled.io/api/v1/projects/2JUSLUee46xG6iEwG8JwPc/clients/2JUdYi26caQ2pMgQweYJrk \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJo...'

Error Codes

CodeHTTP StatusDescription
invalid_params400Invalid or missing request parameters, headers, or body.
invalid_authorization_token401Unauthorized request. The authorization token is missing or invalid.
insufficient_permission403Insufficient permissions to access this resource.
project_not_found404The requested project could not be found.
client_not_found404The requested client could not be found.
system_error500An unexpected error occurred. Please try again later.