---
title: "Remove a tool from toolbar in JavaScript PDF viewer | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/customizing-the-interface/customizing-the-toolbar/"
md_url: "https://www.nutrient.io/guides/web/customizing-the-interface/customizing-the-toolbar.md"
last_updated: "2026-06-08T09:14:14.481Z"
description: "Learn how to customize the Nutrient Web SDK toolbar by removing items using our API. Enhance user experience with tailored toolbar configurations."
---

# Removing a tool from the toolbar in our JavaScript viewer

Nutrient Web SDK comes with a customizable main toolbar that, by default, includes a number of predefined items. You can remove any toolbar item you want using our API.

The Web SDK is initialized with a default set of items that can be retrieved via [`NutrientViewer.defaultToolbarItems`](https://www.nutrient.io/api/web/NutrientViewer.html#.defaultToolbarItems):

```js

const defaultItems = NutrientViewer.defaultToolbarItems;
console.log(defaultItems);

```

Items in the toolbar are plain JavaScript objects with the shape of a [`NutrientViewer.ToolbarItem`](https://www.nutrient.io/api/web/NutrientViewer.ToolbarItem.html). To remove any item, first get the array of current toolbar items via [`instance.toolbaritems`], then filter it and set the new array:

```js

const items = instance.toolbarItems;
// Hide the toolbar item with the `id` "ink"
// by removing it from the array of items.
instance.setToolbarItems(items.filter((item) => item.type!== "ink"));

```
---

## Related pages

- [Activate or deactivate tools in our viewer toolbar](/guides/web/customizing-the-interface/controlling-the-toolbar-via-api.md)
- [Configuring pager toolbar display behavior](/guides/web/user-interface/main-toolbar/pager-display.md)
- [Create a new tool in PDF viewer toolbar](/guides/web/user-interface/main-toolbar/create-a-new-tool.md)
- [Customizing tools in the JavaScript PDF viewer toolbar](/guides/web/user-interface/main-toolbar/customize-existing-tools.md)
- [Customizing download/export buttons in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/download-export-button.md)
- [Adding page labels to navigation in our viewer](/guides/web/features/navigation-page-labels.md)
- [Hiding the toolbar in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/hide-the-toolbar.md)
- [Adjust the placement of the toolbar in our viewer](/guides/web/user-interface/main-toolbar/placement.md)
- [Customize dropdown navigation in the viewer toolbar](/guides/web/user-interface/main-toolbar/dropdown-groups.md)
- [Rearrange tools in our viewer toolbar](/guides/web/user-interface/main-toolbar/rearrange.md)
- [Customizing responsive navigation in our viewer toolbar](/guides/web/user-interface/main-toolbar/responsive-groups.md)
- [Customize the print button (hide/enable) in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/print-button.md)

