Delete organization (owner only)
Organizations
Delete Organization
⚠️ SECURITY: Only the organization OWNER can delete the organization. This action is PERMANENT and cannot be undone. All members, invites, and data will be deleted.
DELETE
Delete organization (owner only)
Permanently deletes an organization and all associated data.
A successful deletion returns no response body, only a 204 status code.
Authentication
This endpoint requires authentication via Bearer token:- Authorization:
Bearer <token>
⚠️ Security Warning
Only the organization OWNER can delete the organization. This is a destructive action that cannot be undone. All data will be permanently removed.Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Organization UUID |
What Gets Deleted
When an organization is deleted, the following data is also permanently removed:Organization Data
- Organization profile and settings
- All organization members
- All pending invitations
API Resources
- All OAuth applications and tokens
- All webhooks and delivery history
- All API keys
Billing Data
- Stripe subscription (will be cancelled)
- Billing history is preserved in Stripe
Example Request
Example Response
Common Errors
403 Forbidden
Only the owner can delete the organization.404 Not Found
The organization with the specified ID does not exist.Before You Delete
Important considerations:- Export your data - There is no way to recover deleted data
- Cancel subscriptions - Stripe subscription will be cancelled automatically
- Notify team members - Members will lose access immediately
- Backup API keys - All API keys will stop working
- Save webhooks - Webhook URLs and settings will be lost
Alternative: Archive Instead
Consider implementing an archive feature instead of permanent deletion:- Preserve historical data
- Maintain audit trails
- Allow potential restoration
- Keep billing records