delete method

Future delete({
  1. required String teamId,
})

Delete a team using its ID. Only team members with the owner role can delete the team.

Implementation

Future delete({required String teamId}) async {
  final String apiPath = '/teams/{teamId}'.replaceAll('{teamId}', teamId);

  final Map<String, dynamic> apiParams = {};

  final Map<String, String> apiHeaders = {'content-type': 'application/json'};

  final res = await client.call(
    HttpMethod.delete,
    path: apiPath,
    params: apiParams,
    headers: apiHeaders,
  );

  return res.data;
}