i know the post ist old, but maybe someone have the same issue as you.
I found a solution, you can use the tSystem-Component and insert the following Code:
//with context-variable "ROBOCOPY " + context.strArchiv_Folder_Path + " " + context.strArchiv_Folder_Path + " /S /MOVE" //with fixed-value
"ROBOCOPY //muc1-vm0137/Scripte$/EXP/_IPAM_2.0/_archiv //muc1-vm0137/Scripte$/EXP/_IPAM_2.0/_archiv /S /MOVE"
The script will delete all empty Folder under your Directory.