public function removeByHostCommand($host)
    {
        if ($host === 'all') {
            $this->redirectStorage->removeByHost(null);
            $this->outputLine('Removed redirects matching all hosts');
        } else {
            $this->redirectStorage->removeByHost($host);
            $this->outputLine('Removed all redirects for host "%s"', [$host]);
        }
    }
public function removeByHostCommand($host)
    {
        if ($host === 'all') {
            $this->redirectStorage->removeByHost(null);
            $this->outputLine('Removed redirects matching all hosts');
        } else {
            $this->redirectStorage->removeByHost($host);
            $this->outputLine('Removed all redirects for host "%s"', [$host]);
        }
    }
public function removeByHostCommand ( $ host ) { if ( $ host === 'all' ) { $ this -> redirectStorage -> removeByHost ( null ) ; $ this -> outputLine ( 'Removed redirects matching all hosts' ) ; } else { $ this -> redirectStorage -> removeByHost ( $ host ) ; $ this -> outputLine ( 'Removed all redirects for host "%s"' , [ $ host ] ) ; } }
Remove all redirects by host

This command deletes all redirects from the RedirectRepository by host value.
If ``all`` is entered the redirects valid for all hosts are deleted.

@param string $host Fully qualified host name or `all` to delete redirects valid for all hosts
@return void
Remove all redirects by host