ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Delete Mosaic Dataset

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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})
ParameterExplanationData 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.

  • DELETE_OVERVIEW_IMAGES —Delete the overviews associated with the mosaic dataset. This is the default.
  • NO_DELETE_OVERVIEW_IMAGES —Do not delete the overviews.
Boolean
delete_item_cache
(Optional)

Delete the item cache associated with the mosaic dataset.

  • DELETE_ITEM_CACHE —Delete the item cache associated with the mosaic dataset. This is the default.
  • NO_DELETE_ITEM_CACHE —Do not delete the item cache.
Boolean

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

  • Current Workspace

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal