DELETE
/api/organizations/{organization_id}AuthenticatedDelete an organization
Deletes an organization together with its memberships and invitations. Only owners of the organization or platform administrators may delete it; system (hardcoded) organizations cannot be deleted.
operationId
delete_api_organizations_organization_idOrganizationsAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
- Notes
- Only organization owners or platform administrators may delete an organization.
Path parameters
| Name | Type | Description |
|---|---|---|
| organization_id* | string | Organization id (URL-safe slug) |
Responses
application/json
SuccessMessageResponse
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string |
JSONExample
"success"true
"message""string"
Example request
bashcurl
curl -X DELETE 'https://auth.schemavaults.com/api/organizations/<organization_id>' \
-b 'refresh_token_<auth_server_app_id>=<value>'