delete Team

fun deleteTeam(team: Team, onSuccess: () -> Unit)

Function to execute the request to delete a team

Parameters

team

: the team to delete

onSuccess

: the action to execute if the request has been successful