ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Delete Raster Attribute Table

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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)
ParameterExplanationData 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

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • Creating and deleting raster attribute tables with geoprocessing tools
  • Viewing a raster attribute table

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal