[#BloombergLP-balb-FileCleanerConfiguration-setMaxNumFiles]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/FileCleanerConfiguration.adoc[FileCleanerConfiguration]::setMaxNumFiles
:relfileprefix: ../../../
:mrdocs:

Set the maximum number of files to keep to the specified `maxNumFiles`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setMaxNumFiles(int maxNumFiles);
----

== Description

The behavior is undefined if `maxNumFiles &lt; 0` or `maxNumFiles &lt; minNumFiles()`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *maxNumFiles*
| maximum number of newest matching files to keep
|===


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