removeTeam method

Future<bool> removeTeam({
  1. required String teamId,
  2. String? organizationId,
})

Remove team

Implementation

Future<bool> removeTeam({
  required String teamId,
  String? organizationId,
}) async {
  try {
    final result = await _client.removeTeam(
      teamId: teamId,
      organizationId: organizationId,
    );
    return result.isSuccess;
  } catch (e) {
    if (kDebugMode) {
      print('Error removing team: $e');
    }
    return false;
  }
}