How to remove the ribbon groups from the SharePoint list

In this article we will be seeing how to remove the ribbon tabs, groups and item from the SharePoint Ribbon List interface.

The following is the ribbon interface available in the SharePoint list.


Steps Involved:

a. Open Visual Studio 2010.

b. Create Empty SharePoint Project.

c. Right click on the solution and add a new item.

d. Select the "Empty Element" template from SharePoint 2010 installed templates.

e. The solution looks like the following.












f. Replace the Elements.xml with the following code.

Removing the ribbon tab:

  1. <?xml version="1.0" encoding="utf-8"?>

  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">         

  3. <CustomAction Id="RemoveTab" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List">                  

  4. <CommandUIExtension>                            

  5. <CommandUIDefinitions>                                     

  6. <CommandUIDefinition Location="Ribbon.List" />                            

  7. </CommandUIDefinitions>                  

  8. </CommandUIExtension>         

  9. </CustomAction>         

  10. <CustomAction

  11. </Elements>


Removing the ribbon group:

  1. <?xml version="1.0" encoding="utf-8"?>

  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">         

  3. <CustomAction Id="RemoveNewGroup" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List">                  

  4. <CommandUIExtension>                            

  5. <CommandUIDefinitions>                                     

  6. <CommandUIDefinition Location="Ribbon.ListItem.New" />                            

  7. </CommandUIDefinitions>                  

  8. </CommandUIExtension>         

  9. </CustomAction>

  10. </Elements>

Removing the ribbon button:

  1. <?xml version="1.0" encoding="utf-8"?>

  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">        

  3. <CustomAction Id="RemoveButton" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List">                  

  4. <CommandUIExtension>                            

  5. <CommandUIDefinitions>                                     

  6. <CommandUIDefinition Location="Ribbon.ListItem.Manage.EditProperties" />                            

  7. </CommandUIDefinitions>                  

  8. </CommandUIExtension>         

  9. </CustomAction>

  10. </Elements>