I am under Ubuntu 16.04 and my boot partition got full (I couldn't upgrade), so I began to follow answers in some previous questions on what to do. Basically, I used
~$ sudo apt-get purge linux-image-4.13.0-36
to give it a try, this asked me also to remove dependecies (if I remember correctly) and I frantically accepted. Right after that, I thought about what is the worst case scenario, and after reading
How to restore a system after accidentally removing all kernels?
I got scared as what I would have to go through if it does not boot again if I did something wrong... So the question is basically : how to be sure that everything is still in place to boot without any issue?
If that can help, the following is returned :
~$ uname -r
4.13.0-43-generic
~$ ls /boot
abi-4.13.0-36-generic retpoline-4.13.0-36-generic
abi-4.13.0-37-generic retpoline-4.13.0-37-generic
abi-4.13.0-38-generic retpoline-4.13.0-38-generic
abi-4.13.0-39-generic retpoline-4.13.0-39-generic
abi-4.13.0-41-generic retpoline-4.13.0-41-generic
abi-4.13.0-43-generic retpoline-4.13.0-43-generic
config-4.13.0-36-generic System.map-4.13.0-36-generic
config-4.13.0-37-generic System.map-4.13.0-37-generic
config-4.13.0-38-generic System.map-4.13.0-38-generic
config-4.13.0-39-generic System.map-4.13.0-39-generic
config-4.13.0-41-generic System.map-4.13.0-41-generic
config-4.13.0-43-generic System.map-4.13.0-43-generic
efi (in blue) vmlinuz-4.13.0-36-generic
grub (in blue) vmlinuz-4.13.0-36-generic.efi.signed
initrd.img-4.13.0-36-generic vmlinuz-4.13.0-37-generic
initrd.img-4.13.0-37-generic vmlinuz-4.13.0-37-generic.efi.signed
initrd.img-4.13.0-38-generic vmlinuz-4.13.0-38-generic
initrd.img-4.13.0-39-generic vmlinuz-4.13.0-38-generic.efi.signed
initrd.img-4.13.0-41-generic vmlinuz-4.13.0-39-generic
initrd.img-4.13.0-43-generic vmlinuz-4.13.0-39-generic.efi.signed
lost+found (in blue) vmlinuz-4.13.0-41-generic
memtest86+.bin vmlinuz-4.13.0-41-generic.efi.signed
memtest86+.elf vmlinuz-4.13.0-43-generic
memtest86+_multiboot.bin vmlinuz-4.13.0-43-generic.efi.signed
To avoid any nasty surprise, at the moment I am just closing the top of my laptop which put it in standby mode without shutting it down, but it may become a bit annoying to do that over a long period.
Many thanks!