Sometimes WHM (Clusters → DNS Cluster) shows old or unwanted cluster servers.
If you want to remove them all from the command line, follow these steps:
1. Backup Current Cluster Config (optional but recommended)
cp -r /var/cpanel/cluster/root/config /root/cluster_backup
This creates a backup at /root/cluster_backup.
2. Remove All Cluster Entries
rm -f /var/cpanel/cluster/root/config/*
This deletes all cached DNS cluster configuration files.
3. Restart cPanel/WHM
service cpanel restart
(or on systemd servers:)
systemctl restart cpanel
Verification
Log into WHM → Clusters → DNS Cluster.
It should now display:
There are currently no servers in your DNS cluster.
