/**
  * Delete a domain record
  *
  * @param string $hostPattern The host pattern of the domain to remove
  * @return void
  */
 public function deleteCommand($hostPattern)
 {
     $domain = $this->domainRepository->findOneByHostPattern($hostPattern);
     if (!$domain instanceof Domain) {
         $this->outputLine('Domain is not found');
         $this->quit(1);
     }
     $this->domainRepository->remove($domain);
     $this->outputLine('Domain deleted');
 }