Delete an IP address via SSH from your cPanel server
This tutorial will show you how to delete an IP address via SSH.
How to delete an IP address via SSH
Normally, you delete an IP address by logging into WHM and removing the it using the function “Show or delete current IP address” under “IP functions” .
Alternatively you can remove the IP in SSH via linux command.
nano /etc/ips
and now remove the line of the IP and then restart the ipaliases service by the command
service ipaliases restart /scripts/rebuildippool
You can recheck if the IP has gone by using the command
ifconfig