Summary
Removes the raster attribute table associated with a raster dataset.
Usage
The input raster dataset can only have a single band.
Syntax
DeleteRasterAttributeTable_management (in_raster)
Parameter | Explanation | Data Type |
in_raster | The raster dataset containing the attribute table you want to remove. | Raster Layer |
Code sample
DeleteRasterAttributeTable Example (Python Window)
This is a Python sample for the DeleteRasterAttributeTable tool.
import arcpy
arcpy.DeleteRasterAttributeTable_management("c:/data/delrat.tif")
DeleteRasterAttributeTable Example 2 (Stand-alone script)
This is a Python script sample for the DeleteRasterAttributeTable tool.
##====================================
##Delete Raster Attribute Table
##Usage: DeleteRasterAttributeTable_management in_raster
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.DeleteRasterAttributeTable_management("image.tif")
Environments
Licensing information
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes