7

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.

asked Apr 28, 2011 at 19:13
1

1 Answer 1

10

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.

answered Apr 28, 2011 at 19:42
1
  • Thanks looks like it does the job. Don't know how I missed it! Commented Apr 29, 2011 at 3:34

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.