Created
June 30, 2011 14:07
-
-
Save folkertsj/1056301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageTypesList = PageType.List(); | |
foreach (PageType pt in pageTypesList) | |
{ | |
var defs = pt.Definitions; | |
var pd = defs.Where(p => p.Name == pageDefinitionName).FirstOrDefault(); | |
if (pd != null) | |
{ | |
pd.Delete(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment