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...

Remove Spatial Index

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

Summary

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.

Usage

Syntax

RemoveSpatialIndex_management (in_features)
ParameterExplanationData Type
in_features

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"
arcpy.RemoveSpatialIndex_management("LPI.Land/LPI.PLSSFirstDivision")
RemoveSpatialIndex Example 2 (Stand-alone Python 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 = "Database Connections/Connection to esoracle.sde"

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

# Execute RemoveSpatialIndex
arcpy.RemoveSpatialIndex_management(in_features)

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 Indexes toolset

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