Use the makeRequest method:
makeRequest
teamId = "65428"; const deleteTeam = await sdk.makeRequest({ apiPath: '/teams/'.concat(teamId), query: { confirmed: true, }, method: 'DELETE', responseSchema: Type.Object({ team: Type.String() }) });
Include the query parameter ?confirmed=true, or you will receive an error and the team will not be deleted.
?confirmed=true
Last updated 4 months ago