Question
How do I remove the WHMCS Billing & Support section in cPanel for a user?
Answer
Warning: Replace "$cpuser" with the cPanel username you want to remove the integration links from.
- Access the server's command line as the
rootuser via SSH or through WHM Home / Server Configuration / Terminal. - Remove the integration group.
# whmapi1 --output=json remove_integration_group user=$cpuser group_id=whmcs
- Remove the integration links.
# whmapi1 --output=json list_integration_links user=$cpuser | /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=$cpuser app=$thing}; };'
- Remove the UI cache.
# mv -v /home/$cpuser/.cpanel/datastore/AVAILABLE_APPLICATIONS_CACHE_en_jupiter{,.$(date +%s)}
Comments
0 comments
Article is closed for comments.