Share via


remove_all Function

Removes the file or directory that has the specified path.

template<class Path>
inline unsigned long remove_all(
   const Path& Pval
);

Parameters

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

Return Value

The number of files that are removed.

Remarks

If Pval refers to a directory, the function recursively removes all subdirectories and files in the directory.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

Header Files