ENG -Remove Custom Tenant Theme in SharePoint Online Using PowerShell

M365 PowerShell For SharePoint Online SharePoint Online

In today’s article I will show you how using PowerShell we can delete a custom theme that we have made apply to our tenant

First we need to see what are the names of the themes we have applied in the past

In our case we have created 3 custom themes but finally we have decided to keep only the theme that has the title custom 1

First we select the home site in our SharePoint and then from the top right cog select change the look

In the next step we select theme and see the available templates

We choose to keep the custom01 theme and delete the custom02 and DemoBlog theme

To delete the themes we will use the following PowerShell in the SharePoint Online Management Shell and we need to have administrative runtime permissions

#Σύνδεση με SharePoint Online -- Connect to SharePoint Online
Connect-PnPOnline -Url https://mytenant.sharepoint.com -UseWebLogin

#Διαγραφή themes -- Delete themes
Remove-PnPTenantTheme -Name "Custom02"
Remove-PnPTenantTheme -Name "DemoBlog"

Finally as you can see in the company themes only the Custom01 Theme remained

More information on deleting themes can be found at url


Leave a Reply

Your email address will not be published. Required fields are marked *