In the Chat feed, select the team you want to leave. Select the ellipsis (...) and then select Leave team.