<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi celati,
</div>
<div class="default-style">
</div>
<div class="default-style">
<div>
QGIS Modeler doesn’t really have a built-in “clean intermediate outputs on rerun” option. The usual workarounds are:
</div>
<div>
</div>
<div>
<strong>Enable overwrite:</strong> Processing -> Options -> General -> <strong>Overwrite existing files</strong>. For many GDAL outputs (like GeoTIFF) this is enough.
</div>
<div>
</div>
<div>
<strong>Delete first, then run:</strong> Add a first step in the model that deletes the known intermediate files (if you have a delete/remove tool available in your Processing toolbox - often under GDAL). Since your filenames are fixed, it’s straightforward.
</div>
<div>
</div>
<div>
If you don’t have any delete tool available in Modeler, the reliable fallback is running the model from a small script that deletes the <em>intermediate</em> folder contents before launching the model.
</div>
<div class="default-style">
</div>
<div class="default-style">
I hope this helps.
</div>
<div>
</div>
</div>
<blockquote type="cite">
<div>
On 01/12/2026 7:05 PM CET celati Laurent via QGIS-User <qgis-user@lists.osgeo.org> wrote:
</div>
<div>
</div>
<div>
</div>
<div dir="ltr">
<div class="gmail-votecell gmail-post-layout--left">
<div class="gmail-js-voting-container gmail-d-flex gmail-jc-center gmail-fd-column gmail-ai-center gmail-gs4 gmail-fc-black-300">
</div>
</div>
<div class="gmail-postcell gmail-post-layout--right">
<div class="gmail-s-prose gmail-js-post-body">
<pre><code>Dear all,</code></pre>
</div>
</div>
<div class="gmail-votecell gmail-post-layout--left">
<div class="gmail-js-voting-container gmail-d-flex gmail-jc-center gmail-fd-column gmail-ai-center gmail-gs4 gmail-fc-black-300">
</div>
</div>
<div class="gmail-postcell gmail-post-layout--right">
<div class="gmail-s-prose gmail-js-post-body">
<p>I'm working with QGIS 3.40.</p>
<p>I've set up a small QGIS modeler with several inputs, algorithms, intermediate outputs, and a final result (model output). For the intermediate algorithm outputs, I've defined a "pre-calculated value" with a relative path.</p>
<p>Here 's the expression setted :</p>
<blockquote>
<code>@project_home || '/intermediaire' || '/segmentation_raster' || '.tif' </code>
</blockquote>
</div>
</div>
<div>
</div>
<div>
<p>All my intermediate outputs are stored in a folder named "intermediate". Each output file has a predefined name and extension.</p>
<p>This works. However, I would like these 'intermediate' files to be automatically deleted/overwritten each time the modeler is run again (delete/replace the output files from the previous run).</p> Could you give me some guidances, provide some ways to do that ? Thanks so much.
</div>
</div> _______________________________________________
<br>QGIS-User mailing list
<br>QGIS-User@lists.osgeo.org
<br>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
<br>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
</blockquote>
<div class="default-style">
</div>
<div class="io-ox-signature">
<table style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #111; line-height: 1.35;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0 14px 0 0; vertical-align: top;"><img style="display: block; border: 0; outline: none; text-decoration: none;" src="https://www.fiberq.net/wp-content/uploads/2025/12/fiberq_logo_transparent.png" alt="FiberQ" width="172" height="57"></td>
<td style="vertical-align: top; padding-top: 2px;">
<div style="font-size: 14px; font-weight: bold;">
Vladimir Vuković
</div>
<div style="font-size: 13px;">
Author of FiberQ
</div>
<div style="height: 8px;">
</div>
<div>
<a style="color: #111; text-decoration: none;" href="mailto:vukovicvl@fiberq.net">vukovicvl@fiberq.net</a>
<br><a style="color: #111; text-decoration: none;" href="https://fiberq.net">fiberq.net</a>
<br><a style="color: #111; text-decoration: none;" href="tel:+381604262012">+381 60 426 2012</a>
</div> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>