check what kernel you’re currently using with the following command:

uname -r

remove old kernel files

sudo apt remove --purge linux-image-x.xx.x-xx-generic