[BlueOnyx:04302] Re: Mass Delete of sites

Chuck Tetlow chuck at tetlow.net
Sun Apr 18 21:05:31 -05 2010


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.

But if you don't want to reload the box, run the following command as root:

for sites in `ls -1 /home/sites`; do /usr/sbin/cdelvsite -a $sites; done

Chuck

---------- Original Message -----------
From: Gerald Waugh <gwaugh at raqware.com> 
To: BlueOnyx General Mailing List <blueonyx at blueonyx.it> 
Sent: Sun, 18 Apr 2010 07:55:56 -0500 
Subject: [BlueOnyx:04286] Re: Mass Delete of sites

> On Sun, 2010-04-18 at 07:44 -0400, Abdul Rashid Abdullah wrote: 
> > Is it possible to do a mass delete of sites?  How would you do that?  Could 
> > you mass delete ALL of the sites on a server and/or delete a list of sites? 
> 
> Create sites.txt 
>  ls /home/sites > sites.txt (edit if you want to save some sites) 
> and then run: 
>  cat sites.txt |  while read a; do  /usr/sbin/cdelvsite -n $a ; done 
> 
> it will delete sites you have in your sites.txt 
> 
> Gerald 
> 
> _______________________________________________ 
> Blueonyx mailing list 
> Blueonyx at blueonyx.it 
> http://www.blueonyx.it/mailman/listinfo/blueonyx 
------- End of Original Message -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20100418/902a48a5/attachment.html>


More information about the Blueonyx mailing list