Label | Explanation | Data Type |
Derived Output
Label | Explanation | Data Type |
Updated Dataset | The updated input dataset. | Feature Layer; Mosaic Layer |
Deletes the spatial index from a shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class.
Spatial indexes are used by ArcGIS to quickly locate features that match a spatial query.
Label | Explanation | Data Type |
Label | Explanation | Data Type |
Updated Dataset | The updated input dataset. | Feature Layer; Mosaic Layer |
arcpy.management.RemoveSpatialIndex()
Name | Explanation | Data Type |
Name | Explanation | Data Type |
out_feature_class | The updated input dataset. | Feature Layer; Mosaic Layer |
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.RemoveSpatialIndex_management("LPI.Land/LPI.PLSSFirstDivision")
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"
# Execute RemoveSpatialIndex
arcpy.RemoveSpatialIndex_management(in_features)