title: nlog old archive files aren't deleted: archiveNumbering=Date,archiveOldFileOnStartup,maxArchiveFiles
body: <p>NLog Version 4.3.6</p>
  
  <p>This target creates a logfile in the log directory in the following format <code>Trace_2016-08-03.log</code> the logfile is moved on startup to the archive directory with a name like <code>Trace_2016-08-03_11h33m32s_743ms.log</code> however old archive files aren't deleted (maxArchiveFiles=2). Can anybody help me on this. I can't figure out what i'm doing wrong.</p>
  
  <pre><code>&lt;target name="AsyncTrace" xsi:type="AsyncWrapper"&gt;
    &lt;target name="TraceFile" xsi:type="File"
      layout="${time} ${level} ${message} ${exception:format=tostring}"
      fileName="${localLogHome}/Trace_${shortDate}.log" 
      archiveFileName="${localLogHome}/Archive/Trace_{#}.log"
      archiveNumbering="Date"
      archiveDateFormat="yyyy-MM-dd_HH\hmm\mss\s_fff\m\s"
      archiveOldFileOnStartup="true"
      maxArchiveFiles="2"
        /&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Thank you for any answers!</p>