ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapProjectItem Class / OnRemoveFromProject Method

OnRemoveFromProject Method (MapProjectItem)
Call back whenever a project item is going to be removed from a project
Syntax
public override void OnRemoveFromProject()
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also