- Log into the Linux device
- Run the following commands in terminal
# output the current kernel version
uname -sr
# list all installed kernels
dpkg -l | grep linux-image | awk '{print$2}'
# delete kernels that are no longer in use
sudo apt remove linux-image-4.19.0-10-amd64 --purge
# update grub bootloader
sudo update-grub2
# reboot
sudo reboot now