delete Mamagement Pack RRS feed

  • Question

  • How it is possible to delete Mamagement Pack when it has links with others MP, for example with Default Management Pack and with my own customised MP, without their removal? And still as it is possible to learn that it for link between MPs and whence it is taken?
    Tuesday, May 18, 2010 6:21 AM


  • Hi Sergey,

    Dependencies of one MP to another MPs are listed in References section (in the beginning of MP xml).

    On the fly they are added usually when you create an override which overrides something in one MP and then save this override to another MP (for instance, to Default Management Pack).

    Another reason for having these dependencies if one MP uses something from another MP (like classes, module types, etc.).

    In order to clean MPs from objects referencing MP which needs to be deleted you can try the following (for every MP it complains about):

    1) Make sure that this is unsealed MP (i.e. in xml format). If it is sealed then you just need to delete it as well.

    2) Export the MP

    3) Find MP you want to delete in references section, remember the Alias of the MP

    4) Find all references like <Alias>!<MPElementId> and remove them with the corresponding context

    5) Remove an entry in reference section as well

    6) Import the MP back (if error occurs then probably not all references were removed)

    7) Try to delete an MP and do the same with the next MP it complains

    Also it is recommended to save overrides not to Default Management Pack but to create an override MP for every MP you want to override. In this case if you want to delete the MP you can just remove both MPs.



    • Proposed as answer by Graham Davies Tuesday, May 18, 2010 9:41 AM
    • Marked as answer by Vivian Xing Wednesday, May 19, 2010 2:40 AM
    Tuesday, May 18, 2010 6:47 AM