@@ -116,19 +116,6 @@ func (api *API) deleteOrganizationMember(rw http.ResponseWriter, r *http.Request
116116aReq .Old = member .OrganizationMember .Auditable (member .Username )
117117defer commitAudit ()
118118
119- if organization .IsDefault {
120- // Multi-organizations is currently an experiment, which means it is feasible
121- // for a deployment to enable, then disable this. To maintain backwards
122- // compatibility, this safety is necessary.
123- // TODO: Remove this check when multi-organizations is fully supported.
124- httpapi .Write (ctx ,rw ,http .StatusBadRequest , codersdk.Response {
125- Message :"Removing members from the default organization is not supported." ,
126- Detail :"Multi-organizations is currently an experiment, and until it is fully supported, the default org should be protected." ,
127- Validations :nil ,
128- })
129- return
130- }
131-
132119if member .UserID == apiKey .UserID {
133120httpapi .Write (ctx ,rw ,http .StatusBadRequest , codersdk.Response {Message :"cannot remove self from an organization" })
134121return