Delete an organization

Delete an organization you own.

DELETE /organizations/{org}

Deletes the org. A console token that started out in the deleted org still names it in its tnt claim afterwards. It can keep managing your other orgs, since those are named in the path.

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)

Response

204 No Content

Errors

StatuserrorWhen
404not_foundThe org does not exist, or your token cannot manage it
403forbiddenYou are not an owner of the org
409conflictThe org is LoginWith’s own platform org, which cannot be deleted

Example

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