[media-plugins] Tree cleaning