AFContact.Delete Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Deletes this contact from the PISystem.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.