<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
If you truly want to delete ALL sites on a box, reloading would be the cleanest way to do it. That way, you've got a clean box to restart with.
<br />
<br />But if you don't want to reload the box, run the following command as root:
<br />
<br />for sites in `ls -1 /home/sites`; do /usr/sbin/cdelvsite -a $sites; done
<br />
<br />
<br />
<br />
<br />Chuck
<br />
<br /><font size="2">
<br />
<br /><b>---------- Original Message
-----------</b>
<br />
From: Gerald Waugh <gwaugh@raqware.com>
<br />
To: BlueOnyx General Mailing List <blueonyx@blueonyx.it>
<br />
Sent: Sun, 18 Apr 2010 07:55:56 -0500
<br />
Subject: [BlueOnyx:04286] Re: Mass Delete of sites
<br />
<br />>
On Sun, 2010-04-18 at 07:44 -0400, Abdul Rashid Abdullah wrote:
<br />>
> Is it possible to do a mass delete of sites? How would you do that?
Could
<br />>
> you mass delete ALL of the sites on a server and/or delete a list of sites?
<br />>
<br />>
Create sites.txt
<br />>
ls /home/sites > sites.txt (edit if you want to save some sites)
<br />>
and then run:
<br />>
cat sites.txt | while read a; do /usr/sbin/cdelvsite -n $a ;
done
<br />>
<br />>
it will delete sites you have in your sites.txt
<br />>
<br />>
Gerald
<br />>
<br />>
_______________________________________________
<br />>
Blueonyx mailing list
<br />>
Blueonyx@blueonyx.it
<br />>
<a target="_blank" href="http://www.blueonyx.it/mailman/listinfo/blueonyx">http://www.blueonyx.it/mailman/listinfo/blueonyx</a>
<br /><b>------- End of Original Message
-------</b>
<br />
</font>
</BODY>
</HTML>