Cf. forwarded Debian wishlist http://bugs.debian.org/538197 The sftp(1) command accepts only one argument at a time: rm one rm two ... rmdir dir rmdir another Please add support for multiple items: rm one two three ... rmdir ....