added delete method to remove tree properties