Function rmdir

  • Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback.

    Using fs.rmdir() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX.

    To get a behavior similar to the rm -rf Unix command, use rm with options { recursive: true, force: true }.

    Parameters

    Returns void

    Since

    v0.0.2

    See

  • Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback.

    Using fs.rmdir() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX.

    To get a behavior similar to the rm -rf Unix command, use rm with options { recursive: true, force: true }.

    Parameters

    Returns void

    Since

    v0.0.2

    See

  • Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback.

    Using fs.rmdir() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX.

    To get a behavior similar to the rm -rf Unix command, use rm with options { recursive: true, force: true }.

    Parameters

    Returns Promise<void>

    Since

    v0.0.2

    See

Methods

  • Asynchronous rmdir(2) - delete a directory.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • Optional options: RmDirOptions

    Returns Promise<void>

Generated using TypeDoc