remove

Remove the files and folders listed in the provided paths. Where folders are listed, they should be preceded by their contained files in order to be successfully removed. Returns a set of paths that failed to be removed (where .length is zero upon success).

The collate() function can be used to provide the input paths:

remove (collate (".", "*.d", true));

Use with great caution.

Note: May allocate memory.

  1. bool remove(cstring name)
  2. cstring[] remove(const(char[])[] paths)
    cstring[]
    remove
    (
    const(char[])[] paths
    )

Meta