Neos\Neos\Command\DomainCommandController::deleteCommand PHP Method

deleteCommand() public method

Delete a domain record by hostname
public deleteCommand ( string $hostname ) : void
$hostname string The hostname to remove
return void
    public function deleteCommand($hostname)
    {
        $domain = $this->domainRepository->findOneByHostname($hostname);
        if (!$domain instanceof Domain) {
            $this->outputLine('<error>Domain not found.</error>');
            $this->quit(1);
        }
        $this->domainRepository->remove($domain);
        $this->outputLine('Domain entry deleted.');
    }