Prunes metadata from files