RemoveAFUnitOfMeasure Class
- Last UpdatedDec 15, 2025
- 3 minute read
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
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellRemoveAFUnitOfMeasure
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
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
| Name | Description | |
|---|---|---|
| RemoveAFUnitOfMeasure |
Properties
| Name | Description | |
|---|---|---|
| AFServer | AF Server from which to remove the AF Unit of Measure | |
| AFUnitOfMeasure | AF Unit of Measure to remove | |
| CheckIn | Check in changes immediately | |
| ID | ID of the AF Unit of Measure to remove | |
| Name | Name of the AF Unit of Measure to remove |
Examples
Remove-AFUnitOfMeasure -Name "decimeter" -AFServer $afServerWhere:
$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".