ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Delete Method / Delete(RelationshipDescription) Method
A description of the relationship to delete.
Example

In This Topic
    Delete(RelationshipDescription) Method
    In This Topic
    Deletes the relationship that associates the two specified rows in the RelationshipDescription.
    Syntax

    Parameters

    relationshipDescription
    A description of the relationship to delete.
    Exceptions
    ExceptionDescription
    relationshipDescription cannot be null.
    Remarks
    The DeleteRelationship method deletes the relationship between the origin row and destination row specified in the RelationshipDescription. This will remove the entry for this relationship from the relationship class.
    Example
    Delete all the selected features in FeatureSceneLayer
    //must support editing!
    //var featSceneLayer = .... ;
    if (!featSceneLayer.HasAssociatedFeatureService || 
        !featSceneLayer.IsEditable)
      return;
    
    var delOp = new EditOperation()
    {
      Name = "Delete selected features"
    };
    //Assuming we have a selection on the layer...
    delOp.Delete(featSceneLayer, featSceneLayer.GetSelection().GetObjectIDs());
    await delOp.ExecuteAsync();//await if needed but not required
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also