clean up metadata file