basetransform: remove metadata tagged with the memory tag