How can I remove the domain name from the domainname command?

How can I remove the domain name from the domainname command on ubuntu? I am unable to find anything related to this. I set my domain name using domainname example.com

Thanks in advance!