Delete recursive directories with FTP command on Bash

Solution 1:

Use lftp. The the -r option to lftp rm recursively deletes directories and files.

$ lftp -u <user>,<pass> <server> 
lftp> rm -r <directory>

should do the trick.

Solution 2:

The lftp command, which is available in many distros (though I'm no SUSE expert), supports "rm -r" for exactly that purpose.