If I correctly understand the problem a posteriori, the doc could suggest to remove all old occurrences of talk.bar.com
prior to launch this command. It could simply done via
discourse remap talk.bar.com talk.foo-or-bar-that-s-the-question.com
(I didn’t tried.)