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

PI Powershell

ClearChangeTables Class

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

Clears ChangeTables in the PISystem

Clears the tables in the PI AF SQL database which record information on changes to the PISystem.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellClearChangeTables

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

Syntax

[CmdletAttribute("Clear", "AFChangeTables", SupportsShouldProcess = true)]
public class ClearChangeTables : OSICmdletBase
<CmdletAttribute("Clear", "AFChangeTables", SupportsShouldProcess := true)>
Public Class ClearChangeTables
	Inherits OSICmdletBase

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

The ClearChangeTables type exposes the following members.

Constructors

  NameDescription
Public method
ClearChangeTables

Properties

  NameDescription
Public property
AFServer

Instance of the AFServer

Examples

$afServer | Clear-AFChangeTables

Where:

$afServer = Get-AFServer -Name "AFServerMachineName"

Clears the tables in the PI AF SQL database which record information on changes in the PISystem specified by the AFServer.

See Also

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