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
| Name | Type | Description |
|---|---|---|
org | string | The 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
| Status | error | When |
|---|---|---|
404 | not_found | The org does not exist, or your token cannot manage it |
403 | forbidden | You are not an owner of the org |
409 | conflict | The 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"