Delete whole folder in SFTP

Is it possible to make DOpus delete folders on SFTP faster by sending one command that would recursively delete all folder content and the folder itself?
I mean, is it possible for you to make it happen automatically when I use delete command on SFTP? Currently, if I delete a large folder, it takes ages to complete because each file is deleted via separate command (isn't it?).

Another related wish:
Provide a way to add buttons and menu items that execute user-defined command on files and folders on SFTP. I'm not sure but there might be needed additional SSH configuration for each SFTP sever.
So for example I could add context menu item that compress/decompress selected files and folders using tar.gz or zip. Or delete whole directory.
As far as I know, it's possible to do that in WinSCP.

For now, I accomplish this wish with very long rename function, but it's very inconvenient to add more buttons.

RENAME TO="*" @script vbscript Option Explicit Sub Run(ByVal sFile) Dim shell Set shell = CreateObject("WScript.Shell") shell.Run Unescape(sFile), 1, false Set shell = Nothing End Sub Function Rename_GetNewName ( strFileName, strFilePath, fIsFolder, strOldName, ByRef strNewName ) Dim pathArray Dim passwdArray Dim userArray Dim addrArray Dim user Dim passwd Dim addr pathArray = split(strFilePath, ":") passwdArray = split(pathArray(2), "@") userArray = split(pathArray(1), "?") passwd=passwdArray(0) user=userArray(1) addrArray = split(passwdArray(1), "/") addr=addrArray(0) Dim path path = Mid(passwdArray(1), InStr(passwdArray(1), "/")) Run """C:\Program Files (x86)\PuTTY\plink.exe"" -ssh -pw " & passwd & " " & user & "@" & addr & " cd """ & path & """ && tar -zcvf ""'" & strFileName & ".tar.gz'"" ""'" & strFileName & "'""" End Function

Unfortunately, in general no. The FTP protocol means that the server will not accept a RMDIR command if the directory is not empty. One has to delete the individual files first.