remove metadata and *.xds