How do I replace materials on multiple assets?

I just tried ‘replace references’ and this deletes old material which I definitely don’t want to. I only want to replace in one level.