bool CMarkup::RemoveNode();

RemoveNode removes the node at the current main position. If there is no main position to remove, it returns false and does not modify the CMarkup object. Upon removal, the main position becomes that of the previous node or it results in no main position if the removed node was the first child of its parent.

See the Node Methods in CMarkup.