oot/_help_Gzjqa934BdH4">Configuration (config.ini or environment variables)</a>&nbsp;via the <code>.ini</code> file:</p><pre><code class="language-text-x-trilium-auto">[Logging]
retentionDays=7</code></pre>
<p>Or via the environment variable <code>TRILIUM_LOGGING_RETENTION_DAYS</code>.</p>
<p>Special cases:</p>
<ul>
  <li>Positive values indicate the number of days worth of logs to keep</li>
  <li>A value of 0 results with the default value (90 days) to be used</li>
  <li>Negative values (e.g. <code>-1</cod