Skip to content
Skip to main content
Search FAQ...
  • Software

    • Changing the Outgoing Mail IP in WHM/cPanel
    • cPanel - Verify License
    • Disable Network Manager Centos
    • Fix WordPress website downloading
    • How to Install Multicraft onto a Server
    • htaccess force HTTPS
    • License Install Commands
    • MOTD WELCOME POPUP CENTOS
    • Software Update Licenses
    • Update Server Hostname SSL - cPanel
  • Server Commands

    • 2087 NOT WORKING FIX
    • Clear Email Queue - WHM
    • Clear History
    • Clear Storage - ONLY cPanel
    • cPanel / WHM fix error for lets encrypt
    • cPanel Commands (RcLicenseCP)
    • High CPU Killer - cPanel
    • Suspend / Un-suspend
    • Terminate after 30 days
    • View how many unsent emails
    • webmail fixer
    • WGET ENABLE / DISABLE
  • LiquidWebSpace

    • Credit Calculator
    • smart host auth
< All Topics
  • Main
  • Server Commands
  • Terminate after 30 days
Print

Terminate after 30 days

Table of Contents
bash <<EOF
find /var/cpanel/suspended/ -mtime +30 > /root/autoterminate.txt
cut -d '/' -f5 /root/autoterminate.txt
echo "Users to remove"
cut -d '/' -f5 /root/autoterminate.txt > /root/auto.txt
for i in \`cat /root/auto.txt\`; do /scripts/removeacct -y \$i; done
EOF
Previous Suspend / Un-suspend
Next View how many unsent emails
Table of Contents

© My Website Panel & LiquidWebSpace