You don't have a setMode() here as the command does. On command line if you want to delete a remote tracking branch you have to specify '-r', otherwise the operation is prohibited.

But I am not sure whether I really want this feature in our API. I think it is ok to delete remote tracking branches without given the mode.