ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / HistoricalVersion Class / Delete Method

Delete Method (HistoricalVersion)
Deletes this historical version. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public override void Delete()
Exceptions
ExceptionDescription
This historical version is a transient one specified with a timestamp and therefore cannot be deleted.
The underlying data store is a Feature Service Database, which does not support deleting historical versions.
A geodatabase-related exception has occurred.
Remarks
This routine cannot be used to delete a historical moment (i.e., an HistoricalVersion with an empty name).
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.5 or higher.
See Also