Removing accidentally created workspaces
UPDATE project
INNER JOIN organization ON project.organization_id = organization.id
SET project.theme_id = null
WHERE organization.name = 'ORG NAME';
DELETE user FROM user
INNER JOIN user_organization_role ON user.id = user_organization_role.user_id
INNER JOIN organization_role ON user_organization_role.organization_role_id = organization_role.id
INNER JOIN organization ON organization_role.organization_id = organization.id
WHERE organization.name = 'ORG NAME';
DELETE FROM organization WHERE name = 'ORG NAME';Last updated
Was this helpful?