ArcGIS Pro 2.6 API Reference Guide
DeleteElement Method
Example 

ArcGIS.Desktop.Layouts Namespace > Layout Class : DeleteElement Method
Element
Deletes an element on a page layout. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void DeleteElement( 
   Element element
)
Public Sub DeleteElement( _
   ByVal element As Element _
) 

Parameters

element
Element
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Map has reached maximum graphics count limit of 4000 elements. One or more elements cannot be created.
Map has reached maximum graphics size limit of 10 MB. One or more elements cannot be created.
Example
//Delete a single layout element.

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  layout.DeleteElement(elm);
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Layout Class
Layout Members