Hi Vinod,
This is basically because FTP doesn’t support recursive delete, or multiple file deletes. The actions we provide match directly to the commands available so that any scripts can be made with these building blocks.
To solve your current issue, you will need to use the List Directory command with the file spec for the list of files you wish to delete. Push the value from this into a variable. Then iterate through this list and delete each files from the FTP server. Then delete the directory in question, note that is usually has to be empty before FTP servers allow deletion of a directory. This can then be repeated for each directory you wish to delete files for.
Let us know how this goes for you.