PIIdentities.Remove Method (PIIdentity)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Removes a PIIdentity from the PI Data Archive
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( PIIdentity item )
Public Function Remove ( item As PIIdentity ) As Boolean Dim instance As PIIdentities Dim item As PIIdentity Dim returnValue As Boolean returnValue = instance.Remove(item)
public: bool Remove( PIIdentity^ item )
member Remove : item : PIIdentity -> bool
Parameters
- item
- Type: OSIsoft.AF.PIPIIdentity
The PIIdentity to delete.
Return Value
Type: Booleanif the item is successfully removed; otherwise, . This method also returns if name was not found in the original collection.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If item is . |
Remarks
The PIIdentity is immediately deleted from the PI Data Archive.