deleteTeam
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
Function to execute the request to delete a team
: the team to delete
: the action to execute if the request has been successful