forceDelete

Forcibly remove a file or directory. If atomic is true, the entire directory is deleted "atomically" (it is first moved/renamed to another location). On Windows, this will move the file/directory out of the way, if it is in use and cannot be deleted (but can be renamed).

  1. void forceDelete(string fn, Flag!"recursive" recursive)
    void
    forceDelete
    (
    Flag!"atomic" atomic = Yes.atomic
    )
    (
    string fn
    ,
    Flag!"recursive" recursive = No.recursive
    )
  2. void forceDelete(string fn, bool recursive)

Meta