800 .test accounts

cd /home/virtual
DeleteDomain --force *.test

Although, I would encourage you address Cannot delete account - #2 by Troy as a precheck is done to ensure a domain may be deleted without obliterating DNS records on a server move; this is the root cause of failure.

A domain may exist on multiple servers. If cp-proxy is configured, a check is performed prior to deletion to ensure removing a defunct account will not remove DNS zones elsewhere.