ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElementContainer Interface / RemoveElement Method
The element name.
(optional) When true the search continues in group elements. (default value = true)
Version

RemoveElement Method (IElementContainer)
Removes the element specified by name.
Syntax
void RemoveElement( 
   string elementName,
   bool recurse
)

Parameters

elementName
The element name.
recurse
(optional) When true the search continues in group elements. (default value = true)
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also