ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Realtime Namespace / RealtimeFeatureClass Class / Truncate Method
Example Version

Truncate Method (RealtimeFeatureClass)
Removes all features. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public new void Truncate()
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
Delete all current and previous observations
//Must be on QueuedTask!
//Must be called on the feature class
using (var rfc = streamLayer.GetFeatureClass())
  rfc.Truncate();
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also