View Full Version : Delete Hostin Accounts?
HWF
March 5th, 2009, 11:49
Is there a way to delete all accounts which are using 0 Disk Space?
I know how to do it manully but is there an easier way?
Schmarvin
March 5th, 2009, 15:26
I thought I saw a script that does it. Check with google, I'm sure there is one.
GlennBeforeTime
March 5th, 2009, 17:55
I'd be very careful with a script to do that.
If we're talking about WHM, it caches all statistics so you could end up deleting an account that is in use.
Hostco
March 6th, 2009, 00:50
if you are using Plesk as your webhosting control panel then you can simply sort all accounts based on disk space usage and then delete them.
hope this would help you ;)
azoundria
March 6th, 2009, 02:41
@Hostco,
If you check his signature, you'll find that he's not.
@HWF,
If I understand correctly, you want to delete all unused websites? The problems with deleting all websites with 0Mb used is as follows:
1) WHM data is cached, as Glenn pointed out, so the value might have changed since then.
2) If a client has a very small website, such that it shows up as 0, then it will be deleted as well. There are some potentially useful applications where you don't need a large website, such as if your website is a simple PHP script tool for people to use.
The best way to do this is to also check the file contents. You should have a default page you set up in the cpanel3-skel folder, and so you can visit the website in PHP to see if it matches. (If you didn't, it will be empty so check for that.)
Run both tests for all your files, in a PHP script, and you can have it generate a link to the 'Terminate Multiple Accounts' feature in the WHM. You'll find this script will come in handy later too.
SiberForum
March 6th, 2009, 08:34
Ask your particular provider do that, or if you doubt you can do that manually as usual
GlennBeforeTime
March 6th, 2009, 09:19
I would do a monthly maintenance and calculate it on Transfer Usage rather then disk space.
.Andy
March 6th, 2009, 18:44
I would do an inactivity scan using whmcs. Sort clients by how much space there using.
[AS]Richard
March 6th, 2009, 21:32
Actually many of my KH1 plan users have 0 show up as their disk space usage. This is because they are usually just hosting one or two static HTML pages, and WHM does not even count that.
We do monthly maintenance each month, the manual way, to make sure no accidents happen.
engineerroy2008
March 7th, 2009, 23:50
I would do an inactivity scan using whmcs. Sort clients by how much space there using.
This is the best way to check the clients not using their space, do not go for any script
HWF
March 8th, 2009, 11:25
Hmm WHMCS.
Where in WHMCS do you find this option?
~ServerPoint~
March 10th, 2009, 03:25
Hmm WHMCS.
Where in WHMCS do you find this option?
Probably that is manual?
azoundria
March 10th, 2009, 10:05
Or, if you have to go with a script, see my post. It's the safest way. In order to be removed, a client would have to have a small webpage hosted away from the index directory, in which case, a manual search through more than 100 accounts for that would take too long anyways.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.