'DELETE /api/team/v0/teams/{team_id}'

def delete(self, request, team_id):

    team = get_object_or_404(CourseTeam, team_id=team_id)
    self.check_object_permissions(request, team)
    memberships = list(CourseTeamMembership.get_memberships(team_id=team_id))
    team.delete()
    log.info('user    %d    deleted    team    %s', request.user.id, team_id)
    emit_team_event('edx.team.deleted', team.course_id, {'team_id': team_id})
    for member in memberships:
        emit_team_event('edx.team.learner_removed', team.course_id, {'team_id': team_id, 'remove_method': 'team_deleted', 'user_id': member.user_id})
    return Response(status=status.HTTP_204_NO_CONTENT)
