[BlueOnyx:04286] Re: Mass Delete of sites
Gerald Waugh
gwaugh at raqware.com
Sun Apr 18 07:55:56 -05 2010
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
More information about the Blueonyx
mailing list