Can't delete the via FileOps

Kelly Burgess kellyb at
Mon Oct 4 05:41:14 UTC 2021

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 --


    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.


More information about the omnisdev-en mailing list