I created/added a Theme in SharePoint online using following commands. And provided all the details/parameters.
Connect-PnPOnline –Url $adminSiteUrl –Credentials (Get-Credential) Add-PnPTenantTheme -Identity $themeName -Palette $palette -IsInverted $false
Theme is added successfully and I can select this new theme from change the look option.
But now I want to delete this theme. But I cannot find any option to delete it.
I also tried
Remove-PnPTenantTheme but I am getting following error.
Remove-PnPTenantTheme : Unknown Error
At line:1 char:1
+ Remove-PnPTenantTheme -Identity "BASF_Orange"
+ CategoryInfo : WriteError: (:) [Remove-PnPTenantTheme], ServerException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Admin.RemoveTenantTheme
Can anyone please guide me on how to delete this theme.