Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Indexes toolset > Tools

Remove Spatial Index (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

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.

Spatial indexes are used by ArcGIS to quickly locate features that match a spatial query. For information on spatial indexes in geodatabases, see Setting spatial indexes. For information on spatial indexes in shapefiles, see Creating and updating indexes in shapefiles.


Usage tips

Command line syntax
An overview of the Command Line window
RemoveSpatialIndex_management <in_features>

Parameter Explanation Data Type
<in_features>

The features from which the spatial index will be removed.

Feature Layer | Raster Catalog Layer
Data types for geoprocessing tool parameters


Command line example

removespatialindex "Database Connections\Connection to esoracle.sde\LPI.Land\LPI.PLSSFirstDivision"

Scripting syntax
About getting started with writing geoprocessing scripts
RemoveSpatialIndex_management (in_features)

Parameter Explanation Data Type
in_features (Required)

The features from which the spatial index will be removed.

Feature Layer | Raster Catalog Layer

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

# Set a default workspace
gp.workspace = "c:/test_data"

# Set a default workspace
gp.toolbox = "management"

try:
    # Remove a spatial index from an SDE feature class.
    gp.removespatialindex ("Database Connections/Connection to esoracle.sde/LPI.Land\LPI.PLSSFirstDivision")	

except:
    # If an error occurs when running removespatialindex, print out the error message.
    print gp.GetMessages(2)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.