If you are interested in organizing your SharePoint Online environment by removing unnecessary custom templates, we can assist you. By deleting custom templates, you can enhance the efficiency of your SharePoint site and ensure that only relevant and updated templates are accessible.
This guide will provide you with a detailed, step-by-step process for deleting a custom SharePoint template in SharePoint Online. Whether you are tidying up after a project or reorganizing your site's structure, understanding this procedure will enable you to maintain an efficient and uncluttered SharePoint environment. Let's delve into the specifics to guarantee that your SharePoint site remains optimized for your team's requirements
In this blog we are going to delete the custom templates using PnP PowerShell:
Note: SharePoint Administration access is required.
- Connect with the SharePoint, using admin credentials.
Connect-PnPOnline "https://yourtenant-admin.sharepoint.com" -Interactive - Run the command listed below to retrieve all of the site designs established in the tenant. It will provide us the site design's name, ID, and site script ID.
Get-PnPSiteDesign - Copy the Id of the site design from previous step and replace in the command mentioned below.
Remove-PnPSiteDesign fb5bb858-7bb3-4b30-bc41-7dd62d31da7e
After executing this command, a confirmation screen will appear, Type Y to delete your site template.
Comments
Post a Comment