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);

Remove the file or directory at the specified path.

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

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

path

filesystem path of the file or directory to remove

recursiveFlag

whether to recursively remove directory contents

Created with MrDocs