# eclean-kernel > Remove old kernels in Gentoo. > More information: . - List all kernel files: `sudo eclean-kernel {{[-l|--list-kernels]}}` - Remove all kernels except for the two newest ones: `sudo eclean-kernel {{[-n|--num]}} 2` - Remove all kernels except for the two newest ones and ask before removal: `sudo eclean-kernel {{[-a|--all]}} {{[-n|--num]}} 2`