folders – Remove duplicate files from TargetFolder that are also in SourceFolder — if they have same filename

This is a clarified version of a question asked two days ago.

I’d like to remove files from TargetFolder that are also in SourceFolder (what I was calling a reference directory) — but only if they have the same name. I’d like it to operate recursively, on a Mac (high sierra). Thanks.