rm fixed to fit API of other cmds