Share via


remove Function

Removes a file that has a specified path.

template<class Path>
inline bool remove(
   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 file is removed; otherwise, false.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

Header Files