diff --git a/pkg/api/org_users.go b/pkg/api/org_users.go index d79707d3ae2..c11d2e265b4 100644 --- a/pkg/api/org_users.go +++ b/pkg/api/org_users.go @@ -103,8 +103,8 @@ func updateOrgUserHelper(cmd m.UpdateOrgUserCommand) Response { // DELETE /api/org/users/:userId func RemoveOrgUserForCurrentOrg(c *m.ReqContext) Response { return removeOrgUserHelper(&m.RemoveOrgUserCommand{ - UserId: c.ParamsInt64(":userId"), - OrgId: c.OrgId, + UserId: c.ParamsInt64(":userId"), + OrgId: c.OrgId, ShouldDeleteOrphanedUser: true, }) }