Removes unnecessary kernel files.