AFElement.Delete Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Deletes all versions of this element from the AFDatabase.
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 AFElement instance.Delete()
public: void Delete()
member Delete : unit -> unit
Remarks
This method will delete all versions of this element from the AFDatabase,
even if this element is referenced by multiple elements.
The ApplyChanges or CheckIn method must be
called to save the delete to persistent storage.