---
title: "Remove PDF outlines using JavaScript | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/web/bookmarks/outlines/remove/"
md_url: "https://www.nutrient.io/guides/web/bookmarks/outlines/remove.md"
last_updated: "2026-05-15T19:10:05.076Z"
description: "Learn to remove PDF outlines in your documents using the Nutrient Web SDK with the `setDocumentOutline` method for cleaner presentations and improved user experience."
---

# Remove PDF outlines using JavaScript

Creating, editing, or removing document outlines is available when using [Web SDK](/guides/web.md) in the browser. For more information, refer to the [operational mode](/guides/web/about/operational-modes.md) guide.

With Nutrient Web SDK, you can delete PDF outlines using the [`instance.setDocumentOutline` method](https://www.nutrient.io/api/web/NutrientViewer.Instance.html#setDocumentOutline). The example below shows how to do it by setting the outline to an empty `NutrientViewer.Immutable.List([])`:

```js

await instance.setDocumentOutline(NutrientViewer.Immutable.List([]));

```
---

## Related pages

- [Edit PDF outlines using JavaScript](/guides/web/bookmarks/outlines/edit.md)
- [Create PDF outlines using JavaScript](/guides/web/bookmarks/outlines/create.md)

