The raster dataset containing the attribute table you want to remove.
Raster Layer
Derived output
Name
Explanation
Data type
out_raster
The output raster dataset.
Raster Layer
Code sample
DeleteRasterAttributeTable example 1 (Python window)
This is a Python sample for the DeleteRasterAttributeTable tool.
##====================================
##Delete Raster Attribute Table
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.management.DeleteRasterAttributeTable("image.tif")
DeleteRasterAttributeTable example 2 (stand-alone script)
This is a Python script sample for the DeleteRasterAttributeTable tool.
##====================================
##Delete Raster Attribute Table
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.management.DeleteRasterAttributeTable("image.tif")
Environments
This tool does not use any geoprocessing environments.