Tutorial 5 – Deleting Bookmarks

Requirements:
Tutorial 4 – Getting Bookmarks


In the previous tutorial, we learned how to get the Bookmarks back from the BookmarkServer.

In this tutorial we’ll show how to delete a Bookmark.

First, we’ll identify a Bookmark to delete:

This is accomplished by using the Tag that we used before when creating the Bookmark. We first get the Bookmarks back from the BookmarkServer, then find the Bookmark with our Tag.

Next, we’ll tell the BookmarkServer to delete the Bookmark that we’ve found:

IBookmarkServer’s method DeleteBookmark takes the Bookmark ID to delete.

Screenshot of the final program:
Series-7-Tutorial-5

That’s it. You can now delete a Bookmark from the BookmarkServer.