How to terminate all reseller’s accounts but leave DNS on server?

Sometimes we do not want to kill the zone files along with the accounts,To perform this action First of all get a list of all the accounts and put that list into a file called /root/acctlist:

grep -v 'root\|#' /etc/trueuserowners | grep resellerusername | cut -d: -f1 > /root/acctlist

Note: Please replace resellerusername with the reseller’s username.
Now if you have a list of users, you can run the following command to terminate the accounts but still keep the DNS:

for i in `cat /root/acctlist` ;do /usr/local/cpanel/scripts/killacct $i --killdns=n --force ;done