How to empty the /boot filesystem?

QUESTIONS CENTRECategory: apacheHow to empty the /boot filesystem?
zenhost Staff asked 1 month ago

You may receive an email stating:

The filesystem “/boot” mounted at “/boot” reached “warn” status because you currently use 87.45% of its available blocks.

To resolve this issue you can use this command to remove all old kernels while keeping the last 3 most recent ones installed:

package-cleanup –oldkernels –count=2

This will remove all kernel files from the boot filesystem.