Delete Virtual Server fails to cleanup properly

I have configured Virtualmin Pro to save the virtual hosts in /etc/httpd/vhosts.d/ directory. When I choose Delete Virtual Server from the admin page, I get these errors:

Disabling log file rotation ..
.. Log file rotation failed! : Cannot write to directory at /usr/libexec/webmin/web-lib-funcs.pl line 982.

Deleting virtual website ..
.. Apache website failed! : Cannot write to directory at /usr/libexec/webmin/web-lib-funcs.pl line 982.

The virtual host file remains in /etc/httpd/vhosts.d/ but is 0 bytes in size. The host seems to be removed from the /etc/logrotate.conf so I am unsure what is causing the first error.

Status: 
Closed (fixed)