Clean kernel tree for pyramid