Introduction
You may want to do some server maintenance and clear out packages/plans not being used.
Procedure
The following one liner using our APIs will show the plans being used and the number of users on that plan.
ls /var/cpanel/users | while read x; do whmapi1 accountsummary user=$x; done | grep plan | awk -F : '{print $2}'|sort|uniq -c
and the following will list just the names of the plans that exist also using our API.
whmapi1 listpkgs want=all | grep name: | awk -F : '{print $2}'
Please note these one liners are provided as examples and any further expansions will need to be performed or reviewed by an obtained qualified server administrator.