remove Function

Removes an empty directory that has a specified path.

 bool remove (
   const path& Pval


A path object

true if the directory is removed; otherwise, false.

If the directory is not empty, then an exception is thrown or the error code is set, depending on which overload you use. Use remove_all to remove a directory or directory tree along with the contents.

Header: filesystem

Namespace: std::tr2::sys