Delete Raster Catalog Items (Data Management)

License Level:BasicStandardAdvanced

Summary

Deletes raster catalog items, including all its contents, or a subset of its contents if there is a selection.

Usage

Syntax

DeleteRasterCatalogItems_management (in_raster_catalog)
ParameterExplanationData Type
in_raster_catalog

The input raster catalog that will have its items deleted.

Raster Catalog Layer

Code Sample

DeleteRasterCatalogItems example 1 (Python window)

This is a Python sample for the DeleteRasterCatalogItems tool.

import arcpy
arcpy.DeleteRasterCatalogItems_management("c:/data/DeleteRC.gdb/RC_managed")
DeleteRasterCatalogItems example 2 (stand-alone script)

This is a Python script sample for the DeleteRasterCatalogItems tool.

##===================
##Delete Raster Catalog Items
##Usage: DeleteRasterCatalogItems_management in_raster_catalog
try:
    import arcpy
    arcpy.env.workspace = r"C:\PrjWorkspace"
    ##Delete FGDB Managed Raster Catalog - Support Selection in ArcMap
    arcpy.DeleteRasterCatalogItems_management("DeleteRC.gdb\\Managed")
except:
    print "Delete Raster Catalog Items example failed."
    print arcpy.GetMessages()

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013