Cleanup metadata