Can't delete the via FileOps

Das Goravani goravanis at
Mon Oct 4 16:19:10 UTC 2021

I noticed the parameters for delete contents and recursive, but it also says you cannot delete a directory unless it’s empty. These two things seem to be at odds.. on the one hand “delete contents” on the other hand “Can’t delete a directory that contains something”.

So which is it?

I’m going through a lot of trouble to dig down into directories and delete all the files and sub folders before I can delete the directory.. 

> On Oct 4, 2021, at 1:41 AM, Kelly Burgess <kellyb at> wrote:
> Paul wrote:
>> Since there are nested folders might want to consider a recursive function to delete the files and folders underneath.
> There are new optional parameters in FileOps for Studio 10.2.x - I haven't tried them, but here's the built-in Help --
>    FileOps.$deletefile(cPath[,bDeleteContents=kFalse,bRecursive=kFalse])
>    Deletes the file or folder named cPath.
>     bDeleteContents deletes files inside cPath.
>     bRecursive deletes sub-folders inside cPath if bDeleteContents is true.
>    Files deleted with $deletefile() are not moved into the Recycled bin or Trash can, they are deleted irreversibly.
>    You can delete a folder with $deletefile(), but only if it is empty.
>    The function returns an error code, or zero if successful: see the  FileOps function error codes.
> Kelly
> _____________________________________________________________
> Manage your list subscriptions at
> Start a new message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list