remove_directory Function

Removes a directory that has a specified path.

template<class Path>
inline bool remove_directory(
   const Path& Pval
);

Parameters

  • Pval
    A Path object. Path can be either a basic_path or a type that's derived from basic_path.

Return Value

true if the directory is removed; otherwise, false.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

C++ Standard Library Header Files