Removes an entire performance counter category.
Uninstall-PerformanceCounterCategory [-CategoryName] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Removes, with extreme prejudice, the performance counter category CategoryName. All its performance counters are also deleted. If the performance counter category doesn't exist, nothing happens. I hope you have good backups!
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| CategoryName | String | The performance counter's category name that should be deleted. |
true | false | |
| WhatIf | SwitchParameter | false | false | ||
| Confirm | SwitchParameter | false | false | ||
| CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters. |
Uninstall-PerformanceCounterCategory -CategoryName 'ToyotaCamry'
Removes the ToyotaCamry performance counter category and all its performance counters. So sad!