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

PI Powershell

RemoveAFUnitOfMeasureClass Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
RemoveAFUnitOfMeasureClass Class

Remove an AF Unit of Measure Class

The Remove-AFUnitOfMeasureClass cmdlet removes an existing AF Unit of Measure Class from an AF Server. The AF Unit of Measure Class can be removed by name or by passing an AFUnitOfMeasureClass object.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRemoveAFUnitOfMeasureClass

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

Syntax

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

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

The RemoveAFUnitOfMeasureClass type exposes the following members.

Constructors

  NameDescription
Public method
RemoveAFUnitOfMeasureClass

Properties

  NameDescription
Public property
AFServer

AF Server from which to remove the AF Unit of Measure Class

Public property
AFUnitOfMeasureClass

AF Unit of Measure Class to remove

Public property
CheckIn

Check in changes immediately

Public property
ID

ID of the AF Unit of Measure Class to remove

Public property
Name

Name of the AF Unit of Measure Class to remove

Examples

Remove-AFUnitOfMeasureClass -Name "MyUOMClass" -AFServer $afServer

Where:

$afServer = Get-AFServer -Name PIAF1

Removes the existing AF Unit of Measure Class "MyUOMClass" from the AF Server "PIAF1".

Examples

Remove-UnitOfMeasureClass -AFUnitOfMeasureClass $UOMClassToRemove

Where:

$afServer = Get-AFServer -Name PIAF1

$UOMClassToRemove = Get-AFUnitOfMeasureClass -Name "MyUOMClass" -AFServer $afServer

Removes the existing AF Unit of Measure Class "MyUOMClass" from the AF Server "PIAF1".

See Also

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