Проблема в том, что -f заставляет rm игнорировать любую интерактивную команду:
`-f'
`--force'
Ignore nonexistent files and missing operands, and never prompt
the user. Ignore any previous `--interactive' (`-i') option.
Источник: info coreutils 'rm invocation'