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

Delete Features (Data Management)

Release 9.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

NOTE: This topic was updated for 9.3.1.


Deletes features from the input feature class or layer. If the input is a layer with a selection, only the selected features will be deleted. If the input is a geodatabase feature class or shapefile, all features will be deleted.


Usage tips

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

Parameter Explanation Data Type
<in_features>

The feature class, shapefile, or layer containing selected features to be deleted

Feature Layer
Data types for geoprocessing tool parameters


Command line example

deletefeatures_management c:/workspace/region.mdb/buildings

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

Parameter Explanation Data Type
in_features (Required)

The feature class, shapefile, or layer containing selected features to be deleted

Feature Layer

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/city/urbanforests.mdb"
gp.toolbox = "management"

# Create a feature layer and select features to be deleted
gp.makefeaturelayer("street_trees", "street_trees_layer")
query = '[TREE_CONDITION] = "CUT"'
gp.selectlayerbyattribute("street_trees_layer", "NEW_SELECTION", query)

# Deleted selected features
gp.deletefeatures("street_trees_layer")

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