Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How is it possible to delete a custom root menu developed in VS?

I have gone through some walkthroughs and added an add-in that includes a button like so:

    <AddIn language="CLR" library="CustomUIElements.dll" namespace="CustomUIElements">
        <Button id="CustomUIElements_ZoomToLayerButton" 
          message="Zoom to selected layer" 
          tip="Zoom to default extent" 
          category="Add-In Controls" 
          <Help heading="Zoom To Selected Layer">Set's the extent of selected layer</Help>
        <Menu id="CustomUIElements_Zoom_Commands" caption="Zoom Commands" isRootMenu="true">
            <Button refID="CustomUIElements_ZoomToLayerButton" />

Now ArcMap has the menu "Zoom Commands" but how do I remove it?

share|improve this question
Seems that this can be solved by just running a 'Clean' on the solution in VS. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap. – leon Sep 12 '12 at 13:22
up vote 3 down vote accepted

I guess I could just post my comment as an answer:

Perform a 'Clean' on the solution in Visual Studio. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap after the clean in Visual Studio has completed.

share|improve this answer
You should also accept this answer. – user3461 Sep 13 '12 at 15:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.