diff --git a/components/server/src/workspace/gitpod-server-impl.ts b/components/server/src/workspace/gitpod-server-impl.ts index 5d3213397275ce..068a2b609bbd41 100644 --- a/components/server/src/workspace/gitpod-server-impl.ts +++ b/components/server/src/workspace/gitpod-server-impl.ts @@ -1559,7 +1559,6 @@ export class GitpodServerImpl { this.deleteProject(project.id); @@ -1567,9 +1566,11 @@ export class GitpodServerImpl { - this.removeTeamMember(teamId, userId); + this.removeTeamMember(teamId, member.userId); }) + await this.teamDB.deleteTeam(teamId); + return this.analytics.track({ userId: user.id, event: "team_deleted",