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

PI Powershell

RemoveAFUnitOfMeasure Class

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

Remove an AF Unit of Measure

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRemoveAFUnitOfMeasure

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

Syntax

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

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

The RemoveAFUnitOfMeasure type exposes the following members.

Constructors

  NameDescription
Public method
RemoveAFUnitOfMeasure

Properties

  NameDescription
Public property
AFServer

AF Server from which to remove the AF Unit of Measure

Public property
AFUnitOfMeasure

AF Unit of Measure to remove

Public property
CheckIn

Check in changes immediately

Public property
ID

ID of the AF Unit of Measure to remove

Public property
Name

Name of the AF Unit of Measure to remove

Examples

Remove-AFUnitOfMeasure -Name "decimeter" -AFServer $afServer

Where:

$afServer = Get-AFServer -Name PIAF1

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

Examples

Remove-UnitOfMeasure -AFUnitOfMeasure $UOMtoDelete -AFServer $afServer

Where:

$afServer = Get-AFServer -Name PIAF1

$UOMtoDelete = Get-AFUnitOfMeasure -Name "decimeter" -AFServer $afServer

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

See Also

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