AFVersion.Delete Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Removes the object version from the owner object.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Delete()
Public Sub Delete Dim instance As AFVersion instance.Delete()
public: void Delete()
member Delete : unit -> unit
Remarks
Once the object version is removed, the owner object is no longer valid. You should not use it any more. You can use the NextVersion or PreviousVersion methods to navigate to another version if there are any.
Use the PISystem.Supports method to check if the PISystem supports the Versioning feature.