The vrmvhost command is a simple way to remove a virtual host from the server. This command removes the additions that vaddvhost made without removing the web pages from the vhosts directory. It also removes access to the web pages of a virtual host on the server.
The vrmvhost makes the following changes to your server:
Creates backups of your "vhosts.conf" and "access.conf" files, which are located at /www/conf, and names them "vhosts.conf.pre-vrmvhost" and "access.conf.pre-vrmvhost."
Changes that were made when you added the virtual host are removed from "vhosts.conf" and "access.conf." The vrmvhost command removes the reference to the domain in the vhosts.conf and access.conf files.
The virtual host is removed from the /etc/mail/local-host-names file. This file makes it possible to send mail through the server to an external server. If the virtual host were left in the file, the mail server would think that the domain was a local domain and keep the mail on the server.