STSADM or C# script to delete all custom site templates
-
10-12-2019 - |
Question
I want to delete Custom site templates off my farm and wondering if someone know any script I can use.
Not a big fan of Powershell at the moment as I am using SharePoint 2007.
Solution
You can use the stsadm deletetemplate
stsadm -o deletetemplate
-title <template title>
[-lcid] <language>
Sample Usage: stsadm –o deletetemplate –title YourTemplateName
Peform an iisreset afterwards to ensure removal.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange