Hi
I'm trying to use the ##class(%File).RemoveDirectory utility to delete a windows folder. The folder has nothing in it, but it is not getting deleted.
I've tried doing Set sc=##class(%File).RemoveDirectory(file,.return) and return is returning a -2. I've also tried changing it to .Delete in case that worked, but I got the same.
I've tried it on my local instance and on a customer site on an older version of Cache that doesn't have the return parameter, but it also fails to delete the folder on there too.
file is the full filename and path and the .Delete works fine when used on files.
