Remove outdated materials.