AFContact.Delete Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Deletes this contact from the PISystem.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public void Delete()
Public Sub Delete Dim instance As AFContact instance.Delete()
public: void Delete()
member Delete : unit -> unit
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | This exception is thrown if the contact is defined by ActiveDirectory. |
Remarks
This method will delete this contact from the PISystem.
The contact cannot be deleted if it is defined by ActiveDirectory. This
method will automatically CheckIn the deleted contact to the server.