[Qgis-user] QGIS Modeler: Automatic Deletion/Overwriting of output files (precalculated value)?

vukovicvl@fiberq.net vukovicvl@fiberq.net vukovicvl at fiberq.net
Mon Jan 12 11:31:58 PST 2026


Hi celati,
 
QGIS Modeler doesn’t really have a built-in “clean intermediate outputs on rerun” option. The usual workarounds are:
 
Enable overwrite: Processing -> Options -> General -> Overwrite existing files. For many GDAL outputs (like GeoTIFF) this is enough.
 
Delete first, then run: 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.
 
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 intermediate folder contents before launching the model.
 
I hope this helps.
 

> On 01/12/2026 7:05 PM CET celati Laurent via QGIS-User <qgis-user at lists.osgeo.org> wrote:
>  
>  
>  
> 
> Dear all,
> 
>  
> 
> I'm working with QGIS 3.40.
> 
> 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.
> 
> Here 's the expression setted :
> 
> > @project_home || '/intermediaire' || '/segmentation_raster' || '.tif'
> > 
>  
> 
> All my intermediate outputs are stored in a folder named "intermediate". Each output file has a predefined name and extension.
> 
> 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).
> 
> Could you give me some guidances, provide some ways to do that ? Thanks so much.
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
 
[FiberQ]
Vladimir Vuković
Author of FiberQ
 
vukovicvl at fiberq.net mailto:vukovicvl at fiberq.net
fiberq.net https://fiberq.net
+381 60 426 2012 tel:+381604262012
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260112/a8c9cae1/attachment.htm>


More information about the QGIS-User mailing list