Teams are deleted when there are no more members. If you are the last member in a team and leave it, the team will be removed.