Clean kernel tree for the pyramid