Remove the SharePoint site theme using powershell

In this blog we will be seeing how to remove the SharePoint site theme using powershell

Using powershell remove the site theme

The site theme will be changed to Default(No theme).

$site=Get-SPSite "http://ctsinmbpmoss:1111/sites/sample"
$web=$site.OpenWeb()
[Microsoft.SharePoint.Utilities.ThmxTheme]::RemoveThemeFromWeb($web,$false)
$web.Update()
$web.Dispose()
$site.Dispose()