laptop and a wrench

Bug

The raster .save() function holds onto a file it just saved and prevents it from being deleted.

Last Published: April 22, 2019 ArcGIS for Desktop
Bug ID Number BUG-000105099
SubmittedMay 11, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.5
Operating SystemWindows OS
Operating System Version7
StatusWill Not Be Addressed

Additional Information

This is expected behavior. While Python is running and pointing to a raster object, that raster cannot be deleted. The object must be removed from the Python environment.

Workaround

Use del to delete the raster saved by the .save function before using shutil.rmtree to delete the directory (Un-comment line30).

Steps to Reproduce

Bug ID: BUG-000105099

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options