Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Permanently remove an HPE OneView alert.Syntax
Description
Remove-OVAlert permanently deletes an alert from the HPE OneView appliance. This operation is irreversible.
The cmdlet prompts for confirmation before deleting. Use -Confirm:$false to suppress the prompt in automation scripts. Use -WhatIf to preview which alerts would be deleted without making any changes.
If the alert cannot be deleted because it is locked or in a protected state, pass -Force to override.
To clear (acknowledge) all active alerts, pipe the output of
Get-OVAlert -AlertState Active to Set-OVAlert -Cleared. Use Remove-OVAlert only when you want to fully purge the record.Parameters
The alert object to delete. Must be an
HPEOneView.Alert object. Can be provided via the pipeline.Override deletion restrictions. Appends
?force=true to the DELETE request. Use when the normal delete is rejected due to a locked alert state.Specify one or more appliance connection objects or names. Defaults to the default connection in
$ConnectedSessions.Preview the deletion without actually removing any alerts.
Prompt for confirmation before each deletion. Enabled by default; pass
-Confirm:$false to suppress.Examples
Remove a specific alert
Remove all cleared alerts without confirmation
Preview which alerts would be deleted
Force-remove a locked alert
Acknowledge (clear) all active alerts without deleting them
Output
No output on success. If-WhatIf is used, the cmdlet reports which alerts would be removed.