CmdID

CmdID / PowerShell / Cmdlets / Remove

Remove-Event

Deletes events from the event queue. PowerShell reference

From the PowerShell reference 4 parameters

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Deletes events from the event queue. The Remove-Event cmdlet deletes events from the event queue in the current session. This cmdlet deletes only the events currently in the queue. To cancel event registrations or unsubscribe, use the Unregister-Event cmdlet.

Remove-Event [-SourceIdentifier] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-Event [-EventIdentifier] <Int32> [-WhatIf] [-Confirm] [<CommonParameters>]

Remove an event by source identifier

PS C:> Remove-Event -SourceIdentifier "ProcessStarted"Identify

Remove an event by event identifier

PS C:> Remove-Event -EventIdentifier 30Identify

Remove all events

PS C:> Get-Event | Remove-EventIdentify

Its page in the reference: Remove-Event.

Parameters

4 in the PowerShell reference
-EventIdentifierSpecifies the event identifier for which the cmdlet deletes. An EventIdentifier or SourceIdentifier parameter is required in every command.
-SourceIdentifierSpecifies the source identifier for which this cmdlet deletes events from. Wildcards are not permitted. An EventIdentifier or SourceIdentifier parameter is required in every command.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.