AnsweredAssumed Answered

Unable to remove name of raster from geodatabase

Question asked by wade.a.wall_ERDCCERL on Sep 16, 2019
Latest reply on Sep 24, 2019 by PYadav-esristaff

Hi all,

 

Sometimes, I am unable to remove rasters from a geodatabase that I have created. Even though the name continues to appear in the geodatabase, it is not "really" there. Does anyone else experience this? Is there a way to delete the names of rasters that don't exist anymore, without having to simply create a new geodatabase?

 

Here is an example:

arcpy.ListRasters("*")
Out[13]:
['image',
 'dem',
 'tmpr1pqjrdo',
 'Segmented_201909121301327226310_interIndex',
 'image2019']

 

arcpy.Delete_management('tmpr1pqjrdo')
Out[14]: <Result 'true'>

 

arcpy.ListRasters("*")
Out[15]:
['image',
 'dem',
 'tmpr1pqjrdo',
 'Segmented_201909121301327226310_interIndex',
 'image2019']

 

You can see that the image name is still there. However, tempRast = arcpy.Raster('tmpr1pqjrdo') results in an error that states the raster doesn't exist.

Outcomes