This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/bookmarks/remove.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Remove bookmarks in PDFs using JavaScript | Nutrient SDK

With Nutrient Web SDK, you can delete bookmarks using the instance.delete method. The example below shows how to first retrieve bookmarks from a document using the instance.getBookmarks method, and then delete the first bookmark:

async function deleteFirstBookmark() {
const bookmarks = await instance.getBookmarks();
const firstBookmark = bookmarks.get(0);
if (firstBookmark) {
await instance.delete(firstBookmark.id);
}
}