Delete Organization
Delete ≠ Block
Delete is a permanent removal from the database.
Objects used
Allowed roles
SUPER_ADMIN
Constraints
- Must delete all dependent content (projects, etc.)
- The deletion cannot be rolled back
Asynchronous cleanup
Deleting an organization only removes the organization record itself. All foreign keys in dependent records are set to null. This choice prevents overloading database I/O and gives a quick response to the user, without waiting for the full deletion or launching an async job without a success status.
Three dedicated purge jobs then clean up orphaned data in each module independently: