tdedup

tdedup is a program that deletes files, symlinks, and directories from one directory tree that are duplicated in another.