Well... that is not how I read it... I interpreted it as the last 10 period, otherwise the CleanDirectory() UDF would do the job since it supports the optional integer indicating how old a file/folder must be before it is deleted.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.