Delete your Team

        Deletes your Team. Can only be invoked when you have a team with only one member left (yourself).

        Returns:
            None
171834
def destroy_team(self):
        ''' 

        '''
        request = self._get_request()
        request.post(url=self.TEAM_DESTROY_URL, get_json=False)
808292
def delete(options = {})
      options = options.merge(option_group_name: @name)
      resp = @client.delete_option_group(options)
      resp.data
    end
627908
public function destroyTeam()
    {
        $response = $this->rest->post(
            static::TEAM_DESTROY_PATH
        );

        $this->checkResponse($response, false);

        return true;
    }
351944
def remove(self, member):
        
        if member not in self:
            return False
        score = self._members[member]
        score_index = bisect_left(self._scores, (score, member))
        del self._scores[score_index]
        del self._members[member]
        return True
268959
def delete(self,  **kwargs):       
                
                if 'cat' not in kwargs.keys():
                        kwargs['cat']=''
                cat=kwargs['cat']
                del kwargs['cat']
                res=request.publish_cat1("DELETE", self.con, self.token,  cat, kwargs)
                return res
931008
def delete_token(self):
        
        if self.token_path.exists():
            self.token_path.unlink()
            return True
        return False
294047
public function detachTeam( $team )
    {
        $team        = $this->retrieveTeamId( $team );
        $this->teams()->detach( $team );

        event(new UserLeftTeam($this, $team));

        if( $this->relationLoaded('teams') ) {
            $this->load('teams');
        }
        
        /**
         * If the user has no more teams,
         * unset the current_team_id
         */
        if( $this->teams()->count() === 0 || $this->current_team_id === $team )
        {
            $this->current_team_id = null;
            $this->save();

            if( $this->relationLoaded('currentTeam') ) {
                $this->load('currentTeam');
            }

        }
        return $this;
    }
1178269
def remove_member(self, login):
        
        warnings.warn(
            'This is no longer supported by the GitHub API, see '
            'https://developer.github.com/changes/2014-09-23-one-more-week'
            '-before-the-add-team-member-api-breaking-change/',
            DeprecationWarning)
        url = self._build_url('members', login, base_url=self._api)
        return self._boolean(self._delete(url), 204, 404)
257291
def delete_one(self, source=None, **kw):
		
		
		collection = self.get_collection(source)
		return collection.delete_one(self.__class__.id == self, **kw)
175303
def sport_delete(self, sport_id="0.0.0", account=None, **kwargs):

        

        if not account:
            if "default_account" in config:
                account = config["default_account"]
            if not account:
                raise ValueError("You need to provide an account")

        account = Account(account)
        sport = Sport(sport_id)
        op = operations.Sport_delete(
            **{
                "fee": {"amount": 0, "asset_id": "1.3.0"},
                "sport_id": sport["id"],
                "prefix": self.prefix,
            }
        )

        return self.finalizeOp(op, account["name"], "active", **kwargs)
483723
async def leave(self):
        
        is_resign = self._game_result is None

        if is_resign:
            # For all clients that can leave, result of leaving the game either
            # loss, or the client will ignore the result
            self._game_result = {self._player_id: Result.Defeat}

        try:
            await self._execute(leave_game=sc_pb.RequestLeaveGame())
        except ProtocolError:
            if is_resign:
                raise
324032
def group_membership_delete(self, id, **kwargs):
        ""
        api_path = "/api/v2/group_memberships/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, method="DELETE", **kwargs)
203272
def delete_team(self, project_id, team_id):
        
        route_values = {}
        if project_id is not None:
            route_values['projectId'] = self._serialize.url('project_id', project_id, 'str')
        if team_id is not None:
            route_values['teamId'] = self._serialize.url('team_id', team_id, 'str')
        self._send(http_method='DELETE',
                   location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
                   version='5.1-preview.2',
                   route_values=route_values)
518286
def delete(self):
        
        if self.deleted_at is not None:
            raise CommunitiesError(community=self)
        else:
            self.deleted_at = datetime.utcnow()
738359
def get_team_players(self, team):
        
        team_id = self.team_names.get(team, None)
        try:
            req = self._get('teams/{}/'.format(team_id))
            team_players = req.json()['squad']
            if not team_players:
                click.secho("No players found for this team", fg="red", bold=True)
            else:
                self.writer.team_players(team_players)
        except APIErrorException:
            click.secho("No data for the team. Please check the team code.",
                        fg="red", bold=True)
1230795
def delete(options = {})
      options = options.merge(group_name: @name)
      resp = @client.delete_group(options)
      resp.data
    end
1116420
def _check_team_login(team):
    
    contents = _load_auth()

    for auth in itervalues(contents):
        existing_team = auth.get('team')
        if team and team != existing_team:
            raise CommandException(
                "Can't log in as team %r; log out first." % team
            )
        elif not team and existing_team:
            raise CommandException(
                "Can't log in as a public user; log out from team %r first." % existing_team
            )