Bulk remove unused account packages
Greetings,
Is there any terminal command or script with which we can cleanup all unused account packages on our cpanel servers while making sure none is deleted that is in active use?
So not the server packages but the account packages where you also setup user quotas.
We want to do some spring cleaning and I am seeing a lot of older acccount packages.
I am sure that most are not in use anymore but I rather not waste time manually clicking every single one if at all possible.
Thank you for your help
-
Hey there! I don't have a bulk removal option. The closest help I would have would be these commands here that show you what is in use:
0 -
Unfortunately that does not show any packages with 0 users. It has to have 1 users at minimum it seems to get printed?
I just checked what would happen when I set a user on a plan that has not been used yet while setting the old plan to no users. It is not recognized by command 1 but it is by command 2
Than I ran both commands and compared total line entries the first command returns 49 lines and the second 60 on my endI can resolve it on my end now though with those two scripts by simple cross reference in notepad++ on two tabs. But can you verify it on your end if it indeed does not return packages that are not used? Because it might be a command that is either not correct or no longer functioning as intended.
0 -
Correct - this is designed to show packages in use.
0 -
Than I will just print the two results and do a manual cross check.
Thank you for your help no further questions.0 -
You're very welcome!
0
Please sign in to leave a comment.
Comments
5 comments