BloombergLP::bdls::FilesystemUtil::remove

Remove the file or directory at the specified path.

Synopses

Declared in <bdls_filesystemutil.h>

Remove the file or directory at the specified path.

static
int
remove(
    char const* path,
    bool recursiveFlag = false);
» more...

Remove the file or directory at the specified path.

template<class STRING_TYPE>
static
int
remove(
    STRING_TYPE const& path,
    bool recursiveFlag = false);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
pathfilesystem path of the file or directory to remove
recursiveFlagwhether to recursively remove directory contents