public void BookmarkRemove()
{
//ExStart
//ExFor:Bookmark.Remove
//ExSummary:Shows how to remove a particular bookmark from a document.
Document doc = new Document(MyDir + "Bookmark.doc");
// Use the indexer of the Bookmarks collection to obtain the desired bookmark.
Aspose.Words.Bookmark bookmark = doc.Range.Bookmarks["MyBookmark"];
// Remove the bookmark. The bookmarked text is not deleted.
bookmark.Remove();
//ExEnd
// Verify that the bookmarks were removed from the document.
Assert.AreEqual(0, doc.Range.Bookmarks.Count);
}