Or...you could just break down and use a shareware command to do this.

xxcopy, for example, is very cheap and fast.

Here is a command that would clean out the old files and folders.

xxcopy \\ftpserver\ftproot\*.* /rs /s /pd0 /y /db#60
http://www.xxcopy.com/xxcopy