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

PI Powershell

RemovePIDigitalStateSet Class

  • Last UpdatedDec 15, 2025
  • 2 minute read
RemovePIDigitalStateSet Class

Remove a PI Digital State Set from a PI Data Archive

The Remove-PIDigitalStateSet cmdlet removes a PI Digital State Set from a PI Data Archive.

The connection parameter specifies which connection to a PI Data Archive to use.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellOSICmdletBaseWithConnection
            OSIsoft.PowerShellRemovePIDigitalStateSet

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Remove", "PIDigitalStateSet", SupportsShouldProcess = true)]
public class RemovePIDigitalStateSet : OSICmdletBaseWithConnection
<CmdletAttribute("Remove", "PIDigitalStateSet", SupportsShouldProcess := true)>
Public Class RemovePIDigitalStateSet
	Inherits OSICmdletBaseWithConnection

Dim instance As RemovePIDigitalStateSet
[CmdletAttribute(L"Remove", L"PIDigitalStateSet", SupportsShouldProcess = true)]
public ref class RemovePIDigitalStateSet : public OSICmdletBaseWithConnection
[<CmdletAttribute("Remove", "PIDigitalStateSet", SupportsShouldProcess = true)>]
type RemovePIDigitalStateSet =  
    class
        inherit OSICmdletBaseWithConnection
    end

The RemovePIDigitalStateSet type exposes the following members.

Constructors

  NameDescription
Public method
RemovePIDigitalStateSet

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to remove the PI Digital State Set

(Overrides OSICmdletBaseWithConnectionConnection.)
Public property
Name

Name of the PI Digital State Set to remove

Examples

Remove-PIDigitalStateSet -Name "BoilerState" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

This example removes the PI Digital State Set "BoilerState" from the "PISRV1" PI Data Archive.

See Also

TitleResults for “How to create a CRG?”Also Available in