Jan 18, 2016
24
2
3
India
cPanel Access Level
Root Administrator
Hello,

We are into Free Web Hosting and want to terminate all inactive accounts to clean up the server resources on a regular basis that is a very huge task. Can anyone help me setup cronjob to terminate accounts from the server on these conditions...

  1. If Domain Name not resolving DNS within 15 Days
  2. If there are not logged in for more than 45 days in cPanel
  3. If user not getting any hit on their website for 90 days (Suspend then after 30 days terminate)
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @Rajesh Chauhan,

There are no features in cPanel & WHM that will automatically terminate an account based on those conditions, however I encourage you to vote and add feedback to the following feature request if this is something you'd like to see added to the product:

Allow bulk termination of the cPanels based on date it was suspended

As far as the development of a custom script to terminate accounts based on those conditions, you may want to reach out to a qualified system administrator for help developing such a script. We provide a list of system administration service providers at:

System Administration Services | cPanel Forums

Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hi @Rajesh Chauhan,

Feature requests often depend on the demand for the feature. It doesn't appear there's a high demand for such a feature at this time, so you may want to go the route of contacting a system administrator to create a custom script that performs the specific action you want executed.

Thank you.