deleteTeam method

Future<bool> deleteTeam(
  1. int teamId
)

Deletes the team specified by the teamId

API docs: https://developer.github.com/v3/orgs/teams/#delete-team

Implementation

Future<bool> deleteTeam(int teamId) {
  return github.request('DELETE', '/teams/$teamId').then((response) {
    return response.statusCode == 204;
  });
}