I have many old kernels and I'd like to know which is the safest way to remove them.
Thank you
sudo apt autoremove
The man (manual) page states autoremove
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for other packages and are now no
longer needed.
which includes old kernels.