You can leave any team as long as you are not the last owner of the team.
1) Open Teams and next to the team's name click on the three dots and select "Leave the team":
2) Click "Leave the team":
If you want to rejoin the team you will need to find the team and request to join.