Introduction
If you remove WHMCS or move an account to a server without WHMCS, the WHMCS application links remain enabled in the account. To remove these links, you must run two API calls and manually remove the UI cache.
Procedure
Please note that in the following procedure, "$user" must be replaced with the cPanel user's username.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Remove the integration group.
whmapi1 --output=json remove_integration_group user=$user group_id=whmcs
- Remove the integration links.
whmapi1 --output=json list_integration_links user=$user | /usr/local/cpanel/3rdparty/bin/perl -e 'use Cpanel::JSON; my $json = Cpanel::JSON::Load(<STDIN>); for my $item ( @{$json->{data}->{links}} ) { my $thing = $item->{app}; print qx{whmapi1 remove_integration_link user=$user app=$thing}; };'
- Remove the UI cache.
mv -v /home/$user/.cpanel/datastore/AVAILABLE_APPLICATIONS_CACHE_en_jupiter{,.$(date +%s)}
Comments
0 comments
Article is closed for comments.