I was searching in the forums for some sample code on searching for a bookmark and removing the associated section and I found this piece...
DocumentBuilder builder = new DocumentBuilder(doc);
Node node = builder.Document.Range.Bookmarks[bmark].BookmarkStart;
while (node.NodeType != NodeType.Section)
node = node.ParentNode;
Aspose.Words.Section sectionToRemove = (Aspose.Words.Section) node;
This code works great, it removes the sections I want it to...however, I've been experiencing some voodoo events going on. If I remove certain sections in my document, the images in my header and footer disappear (for all pages). For example, I have a document with a cover page, table of contents and some other pages. If I remove the table of contents, all the header and footer images get removed as well. If I remove some other page down the road, everything holds together and looks great. Any insight as to whats going on? maybe my document is structured incorrectly...I duno...