---
title: "Remove a tool from toolbar in MAUI PDF viewer | Nutrient"
canonical_url: "https://www.nutrient.io/guides/maui/user-interface/main-toolbar/remove-a-tool/"
md_url: "https://www.nutrient.io/guides/maui/user-interface/main-toolbar/remove-a-tool.md"
last_updated: "2026-05-23T00:08:18.139Z"
description: "Learn how to remove specific toolbar items in the Nutrient MAUI PDF viewer using the API to customize your user interface effectively."
---

# Removing a tool from the toolbar in our MAUI viewer

Nutrient MAUI 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.

Nutrient is initialized with a default set of items that can be retrieved via [`MainToolbar.DefaultToolbarItems`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Toolbar.MainToolbar.html#DefaultToolbarItems):

```csharp

foreach(var item in MainToolbar.DefaultToolbarItems)
{
    Debug.WriteLine(item.Name);
}

```



To remove any item, first find the item you want to remove from the current toolbar items listed in the main toolbar, [`MainToolbar.ToolbarItems`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Toolbar.MainToolbar.html#PSPDFKit_Sdk_Models_Toolbar_MainToolbarToolbarItems). Then update [`MainToolbar.ToolbarItems`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Toolbar.MainToolbar.html#PSPDFKit_Sdk_Models_Toolbar_MainToolbarToolbarItems) to remove the item:

```csharp

// Find the item to remove.
var inkToggleButton = PSPDFKitController.MainToolbar.ToolbarItems.First(
    item => item.GetType() == typeof(InkToggleButton));

// Remove the item.
PSPDFKitController.MainToolbar.ToolbarItems.Remove(inkToggleButton);

```
---

## Related pages

- [Customizing existing tools in our viewer toolbar](/guides/maui/user-interface/main-toolbar/customize-existing-tools.md)
- [Activate or deactivate tools in our viewer toolbar](/guides/maui/user-interface/main-toolbar/activate-or-deactivate-tools.md)
- [Create custom tools for MAUI PDF viewer](/guides/maui/user-interface/main-toolbar/create-a-new-tool.md)
- [Customizing the dropdown navigation in our viewer toolbar](/guides/maui/user-interface/main-toolbar/dropdown-groups.md)
- [Adjust the placement of the toolbar in our viewer](/guides/maui/user-interface/main-toolbar/placement.md)
- [Adding page labels to navigation in our viewer](/guides/maui/user-interface/main-toolbar/page-label-navigation.md)
- [Hiding the toolbar in our PDF viewer](/guides/maui/user-interface/main-toolbar/hide-the-toolbar.md)
- [Customizing download/export buttons in our PDF viewer](/guides/maui/user-interface/main-toolbar/download-export-button.md)
- [Rearrange tools in our viewer toolbar](/guides/maui/user-interface/main-toolbar/rearrange.md)
- [Customizing responsive navigation in our viewer toolbar](/guides/maui/user-interface/main-toolbar/responsive-groups.md)

