The shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class from which a spatial index will be removed.
Feature Layer; Mosaic Layer
Derived output
Label
Explanation
Data type
Updated Dataset
The updated input dataset.
Feature Layer; Mosaic Layer
arcpy.management.RemoveSpatialIndex(in_features)
Name
Explanation
Data type
in_features
The shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class from which a spatial index will be removed.
Feature Layer; Mosaic Layer
Derived output
Name
Explanation
Data type
out_feature_class
The updated input dataset.
Feature Layer; Mosaic Layer
Code sample
RemoveSpatialIndex example 1 (Python window)
The following Python Window script demonstrates how to use the RemoveSpatialIndex function in immediate mode.
import arcpy
arcpy.env.workspace = "c:/Connections/Connection to esoracle.sde"
arcpy.management.RemoveSpatialIndex("LPI.Land/LPI.PLSSFirstDivision")
RemoveSpatialIndex example 2 (stand-alone script)
The following Python script demonstrates how to use the RemoveSpatialIndex function in a stand-alone script.
# Name: RemoveSpatialIndex_Example2.py
# Description: Removes a spatial index from a SDE feature class.
# Import system modules
import arcpy
# Set workspace
arcpy.env.workspace = "c:/Connections/Connection to esoracle.sde"
# Set local variables
in_features = "LPI.Land/LPI.PLSSFirstDivision"
# Run RemoveSpatialIndex
arcpy.management.RemoveSpatialIndex(in_features)