This document is archived and information here might be outdated.  Recommended version.


IFeatureCursor.DeleteFeature Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureCursor Interface > IFeatureCursor.DeleteFeature Method
ArcGIS Developer Help

IFeatureCursor.DeleteFeature Method

Delete the existing Feature in the database corresponding to the current position of the cursor.

[Visual Basic .NET]
Public Sub DeleteFeature ( _
)
[C#]
public void DeleteFeature (
);
[C++]
HRESULT DeleteFeature(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The cursor must be initialized to a feature (with the NextFeature() method) before this method can be successfully called.

This should only be called on update cursors. To delete a feature retrieved from a search cursor, call IFeature.Delete on the feature itself.

See Also

IFeatureCursor Interface