Refactored the code and added a vhost delete feature