Delete Raster Catalog Items (Data Management)
Summary
Deletes raster catalog items, including all its contents, or a subset of its contents if there is a selection.
Usage
-
Only geodatabase raster catalogs are valid inputs.
-
When using ArcMap, you can use the Selection tool to choose which items to delete.
Syntax
DeleteRasterCatalogItems_management (in_raster_catalog)
Parameter | Explanation | Data 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
5/7/2015