I would like to remove a custom tab on the ribbon. Is this possible with HideCustomAction?
I have attempted using HideCustomAction with the location and HideActionId set for the desired tab to be removed but it doesn't appear to be working. I see lots of samples for hiding groups or buttons but not the entire tab.
The tab that I would like to hide is one that is shown for document libraries (like the Library tab)
The solution for me was the following
<CustomAction
Id="RemoveRibbon"
Location="CommandUI.Ribbon.ListView"
RegistrationId="101"
RegistrationType="List">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.CustomTab1"></CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.CustomTab1.CustomGroup1.UpdateFolders"></CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.CustomTab1.CustomGroup1.Update2Folders"></CommandUIDefinition>
</CommandUIDefinitions>
</CommandUIExtension>
The caml above specified the location of the ribbon 'CommandUI.Ribbon.ListView', the id of the tab 'Ribbon.CustomTab1' then the id's for each button that was in the tab i.e. 'Ribbon.CustomTab1.CustomGroup1.UpdateFolders' and 'Ribbon.CustomTab1.CustomGroup1.Update2Folders' (they are specified as id's in the custom action that put them on the ribbon but here they are the location property)