Alex Rivera | Logout

Deleting Windows performance counter categories

Asked 2008-09-26T15:15:26.537
26

I have a custom performance counter category. Visual Studio Server Explorer refuses to delete it, claiming it is 'not registered or a system category'. Short of doing it programmatically, how can I delete the category? Is there a registry key I can delete?

Edit
Report

1 Answer

11

You could also use LinqPad, as that doesn't involve an install of any kind - http://www.linqpad.net/.

Run the following code as a "C# Statement(s)":

System.Diagnostics.PerformanceCounterCategory.Delete("Name of category to delete");

I'd run it twice, first time to do the actual delete, second time to get an error message to confirm the delete was successful.

answered 2009-06-19T11:44:49.460

Your Answer