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


IFeatureCursor.DeleteFeature Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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