Feature Service DeleteByID method

Deletes the features or objects in a layer or table using an array of ObjectIDs.

 

DeleteByID(int LayerOrTableID, int[] IDsOfObjectsToDelete)

 

Parameter

Description

LayerOrTableID

The ID of the layer or table from which to delete features or objects.

IDsOfObjectsToDelete

The array of ObjectIDs of the features or objects to be deleted.

 

Return Value

 

An array of EditResult objects whose order is consistent with the order of the features or objects in the input IDsOfObjectsToDelete array.