Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Try raster cleanup – Brad Nesom Apr 28 '11 at 19:54
up vote 8 down vote accepted

Have you looked at the Delete_management option?

share|improve this answer
Thanks looks like it does the job. Don't know how I missed it! – Jesse Anderson Apr 29 '11 at 3:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.