PIStateSets.Remove Method (Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Removes a PI Digital State Set from the PI Data Archive by ID
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( Guid id )
Public Function Remove ( id As Guid ) As Boolean Dim instance As PIStateSets Dim id As Guid Dim returnValue As Boolean returnValue = instance.Remove(id)
public: bool Remove( Guid id )
member Remove : id : Guid -> bool
Parameters
- id
- Type: SystemGuid
The unique ID of the set.
Return Value
Type: Booleanif the item is successfully removed; otherwise, . This method also returns if name was not found in the original collection.
Remarks
The set is immediately deleted from the PI Data Archive.