Have you tried: tempOutput.close() before the delete? Tom ----- Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/release-file-after-processing-runalg-tp5318609p5318772.html Sent from the QGIS - Developer mailing list archive at Nabble.com.