Deleting OpsMgr Attributes

Have you ever looked for a way to delete an Attribute you created (by accident)? I did today, when I was making some documentation about a Management Pack I created.

As you can see there is no Delete option in the Authoring Pane of the OpsMgr Console.

image

So what’s the easiest and fasted way to delete an OpsMgr Attribute?

Answer: Using the Authoring Console.

How?

  1. Backup Management Pack where Attribute is saved in case you need to restore!
  2. Open Authoring Console
  3. Import Management Pack from Management Group where you saved the Attribute (in my case the Default MP)
    image
  4. Go to Health Model Pane
  5. Select Discoveries Folder and delete (HowToRemoveAttributeDiscovery) Discovery.
    image
  6. Click Yes when asked.
    image
  7. Open Service Model Pane in Authoring Console and click on Class Folder
    image
  8. Select Class (Windows Server_Extended in this case) and Delete
    image
  9. And click yes again when asked.
    image
  10. Select Export Management Pack to Management Group
    image
  11. Select correct Management Group and click Connect.
    image
  12. Check if Attribute is gone ;-)
    image