I'm trying to find a way to delete a raster dataset (in any format) using arcpy. As it is now I have been writing custom functions for each file type (eg, delete directory and pyramids for grids, delete .tif, .tfw, ...etc for geotiffs).
Seem like this should be an obvious thing but I can't find it in the function list.
-
Try raster cleanupBrad Nesom– Brad Nesom2011年04月28日 19:54:09 +00:00Commented Apr 28, 2011 at 19:54
1 Answer 1
Have you looked at the Delete_management option?
Permanently deletes data from disk. All types of geographic data supported by ArcGIS, as well as toolboxes and workspaces (folders, geodatabases), can be deleted. If the specified item is a workspace, all contained items are also deleted.
-
Thanks looks like it does the job. Don't know how I missed it!Jesse Anderson– Jesse Anderson2011年04月29日 03:34:02 +00:00Commented Apr 29, 2011 at 3:34