I know its only an example but why
yes | rm -r <>
and not rm -rf <> yes | rm -r <>
and not rm -rf <> > rm -rf foo/bar
rm: foo/bar: Permission denied> [...] Do not write diagnostic messages or modify the exit status in the case of nonexistent operands. [...]