Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 7 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! –  blindJesse Apr 29 '11 at 3:34
add comment

Your Answer

 
discard

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.