title: How to remove toolbar buttons in Autodesk Forge Viewer version 7
body: <p>I am trying to remove toolbar buttons in the new version 7 of Autodesk Forge Viewer.</p>
  
  <p>Please refer my below code: </p>
  
  <pre><code> viewer.addEventListener(Autodesk.Viewing.TOOLBAR_CREATED_EVENT, (e) =&gt; {
          console.log(e);
          let modelTools = e.target.toolbar.getControl('modelTools')
          console.log(modelTools);
          modelTools.removeControl('toolbar-explodeTool');
          modelTools.removeControl('toolbar-measurementSubmenuTool');
          modelTools.removeControl('toolbar-modelStructureTool');
      })
  </code></pre>
  
  <p>From few quick StackOverflow searches, I was able to understand that I have to listen to an event and then get control of the extension and remove it, I think I am trying to do the same but it is not yielding any results, the buttons don't get removed.</p>
  
  <p>Please help!</p>