| Label | Explanation | Data Type |
Input Raster | The raster dataset containing the attribute table you want to remove. | Raster Layer |
Derived Output
| Label | Explanation | Data Type |
| Updated Input Raster | The output raster dataset. | Raster Layer |
Removes the raster attribute table associated with a raster dataset.
The input raster dataset can only have a single band.
| Label | Explanation | Data Type |
Input Raster | The raster dataset containing the attribute table you want to remove. | Raster Layer |
| Label | Explanation | Data Type |
| Updated Input Raster | The output raster dataset. | Raster Layer |
arcpy.management.DeleteRasterAttributeTable(in_raster)
| Name | Explanation | Data Type |
in_raster | The raster dataset containing the attribute table you want to remove. | Raster Layer |
| Name | Explanation | Data Type |
| out_raster | The output raster dataset. | Raster Layer |
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")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")