Synchronize the contents of two temporary directories recursively and delete any files in the destination directory that do not exist in the source directory.
rsync -a --delete $(mktemp -d) $(mktemp -d)