Summary
Deletes a mosaic dataset, its overviews, and its item cache from disk.
Usage
This tool is used to delete a mosaic dataset in its entirety, including any of the tables within the database and, optionally, any overviews or caches created with it.
You may not want to delete the overviews or cache when these are used in other mosaic datasets. The cache is usually created when LAS data, LAS datasets, or terrains are used in the mosaic dataset.
Syntax
DeleteMosaicDataset_management (in_mosaic_dataset, {delete_overview_images}, {delete_item_cache})
Parameter | Explanation | Data Type |
in_mosaic_dataset | The mosaic dataset that you want to delete. | Mosaic Layer |
delete_overview_images (Optional) | Delete all overviews associated with the mosaic dataset.
| Boolean |
delete_item_cache (Optional) | Delete the item cache associated with the mosaic dataset.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_results |
Code sample
DeleteMosaicDataset example 1 (Python window)
This is a Python sample for the DeleteMosaicDataset tool.
import arcpy
arcpy.DeleteMosaicDataset_management(
"C:/Workspace/fileGDB.gdb/md2delete",
"DELETE_OVERVIEW_IMAGES", "NO_DELETE_ITEM_CACHE")
DeleteMosaicDataset example 2 (stand-alone script)
This is a Python script sample for the DeleteMosaicDataset tool.
#Delete mosaic dataset including the overview images
import arcpy
arcpy.env.workspace = "C:/Workspace"
mosaicds = "fileGDB.gdb/md2delete"
delOvr = "DELETE_OVERVIEW_IMAGES"
delCache = "NO_DELETE_ITEM_CACHE"
arcpy.DeleteMosaicDataset_management(mosaicds, delOvr, delCache)
Environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes