How to Terminate old suspended accounts on cpanel server

Terminate old suspended accounts on cpanel server

Following scripts: 

1) vi /root/terminatesuspended.sh

for i in `find /var/cpanel/suspended/ -mtime +90 | cut -d'/' -f5 | sed '1 d'`
do
y | /scripts/killacct $i --killdns n;
done;

2) sh /root/terminatesuspended.sh &

3) Done


How to Terminate old suspended accounts on cpanel server, Hostripples Web Hosting
Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.