Easily remove old/unused PVE kernels on your Proxmox VE system (PVE Kernel Cleaner)


New Member
Oct 23, 2018
Hello everyone,

This is my public release of a tool I have developed to resolve an ongoing issue with old PVE kernels on Proxmox VE.

"Easily remove old/unused PVE kernels on your Proxmox VE system"

What is PVE Kernel Cleaner?
PVE Kernel Cleaner is a program to compliment Proxmox Virtual Environment which is an open-source server virtualization environment. PVE Kernel Cleaner allows you to purge old/unused kernels filling the /boot directory. As new kernels are released the older ones have to be manually removed frequently to make room for newer ones. This can become quite tedious and require extensive time spent monitoring the system when new kernels are released and when older ones need to be cleared out to make room. With this issue existing, PVE Kernel Cleaner was created to solve it.

  • Removes old PVE kernels from your system
  • Ability to schedule PVE kernels to automatically be removed on a daily/weekly/monthly basis
  • Run a simple pvekclean command for ease of access
  • Support for the latest Proxmox versions and PVE kernels


To install PVE Kernel Cleaner head on over to the GitHub page at: https://github.com/jordanhillis/pvekclean

Please let me know what you think and if you run into any issues.
Last edited by a moderator:


Jul 4, 2015
thank you, very handy, had to run multiple times, had 57 old kernels!


Jul 13, 2016
Did not work on one of the boxes. Keeps looping around and not removing anything. Worked on my other nodes.

[*] Boot disk space used is critically full at 84% capacity (729M free)
[-] Searching for old PVE kernels on your system...
[*] "pve-kernel-5.3.18-3-pve" has been added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 1 selected PVE kernels listed above? [y/N]:

root@electro:~# dpkg -l | grep pve-kernel
ii  pve-firmware                         3.1-3                           all          Binary firmware code for the pve-kernel
rc  pve-kernel-4.15                      5.4-17                          all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.3                       6.1-6                           all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.3.18-3-pve              5.3.18-3                        amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.4                       6.2-7                           all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.4.65-1-pve              5.4.65-1                        amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-helper                    6.2-7                           all          Function for various kernel maintenance tasks.

EDIT: it turned out problem with yum , but maybe it would be good idea to catch errors back from yum if problem occur instead of silently going forward.
Last edited:


The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!