Hi Deepalakshmi,
you can try to get the list of the content of the folder and delete it in a loop.
After that, when the folder is empty, you can delete the folder itself.
Do so recursively beginning with the subfolder, which do not have further subfolders.
Outline:
- List content of the current folder
- Loop over list
-- Is folder?
--- Yes: Invoke this service for the subfolder
--- No: Delete file
- Delete folder (should now be empty)
You can check the size (=length of the content list) before the loop and just loop over it, when the it is >0.
When it is 0 you can delete the empty folder directly.
Regards,
Holger
#webMethods-io-Integration#Service-Designer#webMethods#webMethods-io-B2B#Integration-Server-and-ESB#B2B-Integration#Managed-File-Transfer#webMethods-cloud