Pantheon\Terminus\Commands\Site\Team\RemoveCommand::remove PHP Method

remove() public method

Remove a team member from the site's team
public remove ( string $site_id, string $member )
$site_id string Site name or UUID to remove member from
$member string Email, UUID, or full name of the member to remove
    public function remove($site_id, $member)
    {
        $workflow = $this->getSite($site_id)->getUserMemberships()->get($member)->delete();
        while (!$workflow->checkProgress()) {
            // @TODO: Add Symfony progress bar to indicate that something is happening.
        }
        $this->log()->notice($workflow->getMessage());
    }
RemoveCommand