[#BloombergLP-bdls-FilesystemUtil-remove-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::remove :relfileprefix: ../../../ :mrdocs: Remove the file or directory at the specified `path`. == Synopses Declared in `<bdls_filesystemutil.h>` Remove the file or directory at the specified `path`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/remove-07.adoc[remove]( char const* path, bool recursiveFlag = false); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/remove-07.adoc[_» more..._]# Remove the file or directory at the specified `path`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/remove-0c.adoc[remove]( STRING_TYPE const& path, bool recursiveFlag = false); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/remove-0c.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *path* | filesystem path of the file or directory to remove | *recursiveFlag* | whether to recursively remove directory contents |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#