AFVersion.Delete Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Removes the object version from the owner object.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.