Delete and update bookmark action

Hello team,

I want to delete bookmark in two scenarios.
1)delete bookmark keep child bookmarks.
2)delete bookmark with child bookmarks.

i am using bellow code for delete
foreach (OutlineItemCollection outlineItem in pdfDoc.Outlines){
outlineItem.Delete();
}
above code is not working.
How to update existing bookmark action.
i am using bellow code for update action.

XYZExplicitDestination xyzexplicitdestination = new XYZExplicitDestination(destpage, left, top, 0);
pdfOutline.Action = new GoToRemoteAction(TargetFilepath, xyzexplicitdestination);

Above code is also not working.

Please help me to solve above issues related to Bookmarks.

Thanks
Vijaykumar L S

@vijiannabond

Thank you for contacting support.

Would you please visit Working with Bookmarks for your kind reference and may search over forums if it helps achieving your requirements. If you still face the problem then please share source and expected output file along with SSCCE code so that we may try to reproduce the scenario and help you out.