Remove Spatial Index (Data Management)


Deletes the spatial index from a shapefile, file geodatabase feature class, or an ArcSDE feature class. The spatial index cannot be deleted from a personal geodatabase feature class.

Spatial indexes are used by ArcGIS to quickly locate features that match a spatial query.



RemoveSpatialIndex_management (in_features)
ParameterExplanationData Type

The features from which the spatial index will be removed.

Feature Layer; Mosaic Layer; Raster Catalog Layer

Code Sample

RemoveSpatialIndex Example (Python Window)

The following Python Window script demonstrates how to use the RemoveSpatialIndex function in immediate mode.

import arcpy
arcpy.env.workspace = "Database Connections/Connection to esoracle.sde"
RemoveSpatialIndex Example 2 (Stand-alone Python Script)

The following Python script demonstrates how to use the RemoveSpatialIndex function in a stand-alone script.

# Name:
# Description: Removes a spatial index from a SDE feature class.
# Author: ESRI

# Import system modules
import arcpy

# Set workspace
arcpy.env.workspace = "Database Connections/Connection to esoracle.sde"

# Set local variables
in_features = "LPI.Land/LPI.PLSSFirstDivision"

# Execute RemoveSpatialIndex


Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes