Delete a client

Delete a client from the organization.

DELETE /organizations/{org}/clients/{clientId}

Deletes the client. From then on it stops resolving everywhere, sign-in included. An org may be left with no clients.

Authorization

Org owner. Anyone else gets 403 forbidden.

Path parameters

NameTypeDescription
orgstringThe organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it)
clientIdstringThe client, cli_…

Response

204 No Content

Errors

StatuserrorWhen
403forbiddenYou are not an owner of the org
404not_foundNo such client in this org, or the id is not a cli_ id
404not_foundThe org does not exist, or your token cannot manage it

Example

curl -X DELETE https://loginwith.loginwith.dev/organizations/acme/clients/cli_65f1c2a9e4b0d3f7a1c8e902 \
  -H "Authorization: Bearer $TOKEN"