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

PI Powershell

RemovePICollective Class

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

Remove all members from a PI Data Archive Collective

The Remove-PICollective cmdlet removes all PI Data Archive members from an existing PI Data Archive Collective, including the primary member.

The PICollective parameter specifies which PI Data Archive Collective to remove.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRemovePICollective

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Remove", "PICollective", SupportsShouldProcess = true)]
public class RemovePICollective : OSICmdletBase
<CmdletAttribute("Remove", "PICollective", SupportsShouldProcess := true)>
Public Class RemovePICollective
	Inherits OSICmdletBase

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

The RemovePICollective type exposes the following members.

Constructors

  NameDescription
Public method
RemovePICollective

Properties

  NameDescription
Public property
PICollective

PI Data Archive Collective from which to remove all members, including the primary

Examples

Remove-PICollective -PICollective (Get-PICollective -Connection $con)

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Removes all members from the PI Data Archive Collective which "PISRV1" is a member

See Also

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