Remove Alarm Definitions and Actions

In some cases, you might want to remove obsolete alarm definitions and actions.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Remove all the actions for an alarm definition.
    Get-AlarmDefinition -Name AlarmDefinition | Get-AlarmAction | Remove-AlarmAction -Confirm:$false
  2. Remove an alarm definition.
    Get-AlarmDefinition -Name AlarmDefinition | Remove-AlarmDefinition