Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 52691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:56:48+00:00 2026-05-10T16:56:48+00:00

I have a custom performance counter category. Visual Studio Server Explorer refuses to delete

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:56:48+00:00Added an answer on May 10, 2026 at 4:56 pm

    As far as I know, there is no way to safely delete them except programatically (they’re intended for apps to create and remove during install) but it is trivial to do from a PowerShell command-line console. Just run this command:

    [Diagnostics.PerformanceCounterCategory]::Delete( 'Your Category Name' ) 

    HOWEVER: (EDIT)

    You can delete the registry key that’s created, and that will make the category vanish.

    For a category called ‘Inventory’ you can delete the whole key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inventory … and although I wouldn’t be willing to bet that cleans up everything, it will make the category disappear. (If you run Process Monitor while running the Delete() method, you can see can a lot of other activity happening, and there doesn’t seem to be any other changes made).

    It’s important to note that as I said originally: when you get that error from Visual Studio, it might be that it’s already deleted and you need to refresh the view in VS. In my testing, I had to restart applications in order to get them to actually get a clean list of the available categories.

    You can check the full list of categories from PowerShell to see if it’s listed:

    [Diagnostics.PerformanceCounterCategory]::GetCategories() | Format-Table -auto 

    But if you check them, then delete the registry key … they’ll still show up, until you restart PowerShell (if you start another instance, you can run the same query over there, and it will NOT show the deleted item, but re-running GetCategories in the first one will continue showing it.

    By the way, you can filter that list if you want to using -like for patterns, or -match for full regular expressions:

    [Diagnostics.PerformanceCounterCategory]::GetCategories() | Where {$_.CategoryName -like '*network*' } | Format-Table -auto [Diagnostics.PerformanceCounterCategory]::GetCategories() | Where {$_.CategoryName -match '^SQL.*Stat.*' } | Format-Table -auto 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer (Premature) Optimisations In addition to the other answers already posted,… May 12, 2026 at 12:47 am
  • Editorial Team
    Editorial Team added an answer The difference is in the return type declaration. List<String> is… May 12, 2026 at 12:47 am
  • Editorial Team
    Editorial Team added an answer This sounds fine, I think. I imagine if you didn't… May 12, 2026 at 12:47 am

Related Questions

I have a .NET 3.5 web application for which I have implemented a class
I have an ASP.NET application which tracks statistics by creating and writing to custom
I have an objectdatasource that will return a potentially large collection (up to 200,000
I have a custom control that shows a value obtained from the database (the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.