Server - editing MOTD

I have set up a 24.04 server install and wanted to ask how to remove extraneous material from the MOTD - I have no use for Kubernetes or any of the other wall-o-text spam in the MOTD, and can get it removed but after updates it’s right back.

@dale-jolliff
Probaly try

sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*

then

sudo rm -rf ~/.kube
sudo rm -rf /etc/cni
sudo rm -rf /etc/kubernetes
sudo rm -rf /var/lib/etcd
sudo rm -rf /var/lib/kubelet

next remove Iptables

sudo iptables -F && sudo iptables -t nat -F && sudo iptables -t mangle -F && sudo iptables -X

any add on or extensions present in the kubernetes then you will have to remove the extension as well as the data for the extensions as well.
then maybe a good idea to remove the CRD’s too

kubectl delete all --all-namespaces --all

but then again that was from a older version of Ubuntu server now I just make sure I don’t install the package when setting up the server OS.
YMMV hope that helps

Thank you for moving this @irihapeti hopefully it helps @dale-jolliff