[#BloombergLP-balb-FileCleanerUtil-removeFiles]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/FileCleanerUtil.adoc[FileCleanerUtil]::removeFiles
:relfileprefix: ../../../
:mrdocs:

Remove files based on the criteria given by the specified `config`&period;

== Synopsis

Declared in `&lt;balb&lowbar;filecleanerutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
removeFiles(xref:BloombergLP/balb/FileCleanerConfiguration.adoc[FileCleanerConfiguration] const& config);
----

== Description

Only those files for which `bdls&colon;&colon;FilesystemUtil&colon;&colon;isRegularFile` returns `true` are considered for removal (symbolic links are not followed)&period; The behavior is undefined unless `0 &lt;&equals; config&period;minNumFiles()`, `0 &lt;&equals; config&period;maxNumFiles()`, and `config&period;minNumFiles() &lt;&equals; config&period;maxNumFiles()`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *config*
| configuration specifying which files to remove
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
