Remove unused kernels.