ArcGIS Pro 2.8 API Reference Guide
DeleteElement Method (Layout)
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.
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

See Also

Reference

Layout Class
Layout Members