How can I completely remove a Theme from SharePoint?

To completely remove a BindTuning theme from your SharePoint environment (and not just uninstall it), you must follow the instructions below, depending on the SharePoint version you are using.

Modern SharePoint

To completely remove your Modern SharePoint theme, you'll necessarily need to run the provided PowerShell script. To do this:

  1. Access your BindTuning account; 
  2. Navigate to your Design tab > My Themes

    1.png

  3. Mouse over the installed theme and select More Details

    2.PNG

  4. Click on Download

    3.PNG

  5. After downloading your theme, extract the contents of the zipped folder; 
  6. Inside the folder, proceed to extract the underlying folder name THEMENAME.SPFx_x.x.xx.xx.zip
  7. Right-click on the file Installer.ps1 and select Run with PowerShell
  8. If prompted, download the necessary PnP PowerShell cmdlets by following the script's indication; 
  9. Select option 9 - Uninstall theme and full-color experience

    4.PNG

  10. Paste the site collection URL from where you want to remove the theme from; 
  11. Select the uninstallation scope (remove from Site Collection App Catalog or from Tenant App Catalog). 

    If you're unaware of where the theme has been deployed, here you'll find detailed information relating to these same scopes. 

  12. The uninstallation process will proceed automatically. 

    5.PNG

Classic SharePoint

For Farm solutions (SP2013):

Info: SharePoint Designer is required in order to accomplish the steps described in this section. If you need to download it please follow this link.

  1. Go to the sites where the theme was previously installed;
  2. Now go to Settings > Site Settings > Manage Site Features and make sure the theme feature is deactivated;
  3. Go to Site Settings > Masterpage, and make sure that the Seattle masterpage is applied;
  4. On your server open the Central Administration;
  5. Go to the solution gallery (/_admin/Solutions.aspx);
  6. Check if the YourThemeName.SP2013.wsp is in this gallery;
  7. If it is click in the solution, and retract it;
  8. When the retract job is finished click on the solution and delete it;
  9. On your server go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\IMAGES
  10. Delete the folder YourThemeNamePackage
  11. Go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\JS
  12. Delete the folder YourThemeNamePackage
  13. Go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\STYLES
  14. Delete the folder YourThemeNamePackage

For Farm solutions (SP2016 and SP2019):

Info: SharePoint Designer is required in order to accomplish the steps described in this section. If you need to download it please follow this link.

  1. Go to the sites where the theme was previously installed
  2. Now go to Settings > Site Settings > Manage Site Features and make sure the theme feature is deactivated
  3. Go to Site Settings > Masterpage, and make sure that the Seattle masterpage is applied
  4. On your server open the Central Administration
  5. Go to the solution gallery (/_admin/Solutions.aspx)
  6. Check if the YourThemeName.SP201X.wsp is in this gallery
  7. If it is click in the solution, and retract it
  8. When the retract job is finished click in the solution name again and delete it
  9. On your server go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\1033\IMAGES
  10. Delete the folder YourThemeNamePackage
  11. Go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\1033\JS
  12. Delete the folder YourThemeNamePackage
  13. Go to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\1033\STYLES
  14. Delete the folder YourThemeNamePackage

For SandBox solutions

To completely uninstall a SandBox solution, we will need to remove the deployed masterpages, page layouts, and associated theme resources. To do this, follow the steps below:

Info: SharePoint Designer is required in order to accomplish the steps described in this section. If you need to download it please follow this link.

Removing Master Pages

  1. Access your site collection using SharePoint Designer
  2. Go To All Files;
  3. Open _catalogs > masterpage;
  4. Search for a folder with the name of the theme and remove it.

Removing Page Layouts

  1. Access your site collection using SharePoint Designer
  2. Go To All Files;
  3. Open _catalogs > masterpage;
  4. Scroll down, select all the .aspx files that start with ThemeNameTheme (e.g. SPCTheme), and remove them.

Removing Theme Resources

  1. Access your site collection using SharePoint Designer
  2. Go To All Files;
  3. Open Style Library;
  4. Search for a folder with the name of the theme and remove it.

For a complete overview of the uninstallation process, access BindTuning's Installation Guides

Have more questions? Submit a request

Comments

BindTuning logo
Copyright Ⓒ 2021 Bind.
All rights reserved.
Privacy Policy
Cookie Policy
BindTuning
              Linkedin BindTuning Twitter BindTuning YouTube BindTuning Instagram BindTuning
              Facebook
Powered by Zendesk