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

In This Topic
    Truncate Method (RealtimeFeatureClass)
    In This Topic
    Removes all features. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public new void Truncate()
    Public Shadows Sub 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