ArcGIS Pro 2.6 API Reference Guide
Delete Method (HistoricalVersion)

ArcGIS.Core.Data Namespace > HistoricalVersion Class : Delete Method
Deletes this historical version. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void Delete()
Public Sub 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 10, Windows 8.1, Windows 7

See Also

Reference

HistoricalVersion Class
HistoricalVersion Members