code: func DeleteTeam(cmd *m.DeleteTeamCommand) error {
  	return inTransaction(func(sess *DBSession) error {
  		if _, err := teamExists(cmd.OrgId, cmd.Id, sess); err != nil {
  			return err
  		}
  
  		deletes := []string{
  			"DELETE FROM team_member WHERE org_id=? and team_id = ?",
  			"DELETE FROM team WHERE org_id=? and id = ?",
  			"DELETE FROM dashboard_acl WHERE org_id=? and team_id = ?",
  		}
  
  		for _, sql := range deletes {
  			_, err := sess.Exec(sql, cmd.OrgId, cmd.Id)
  			if err != nil {
  				return err
  			}
  		}
  		return nil
  	})
  }
docs: // DeleteTeam will delete a team, its member and any permissions connected to the team