To remove all addresses (in case you have multiple):
ip addr flush dev eth0
linux – How can I clear the IP address of Ethernet interface without cycling the interface up/down or restarting it – Super User was last modified: March 17th, 2019 by