Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElement.Delete Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.Delete Method
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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in