---
title: "Disable or hide delete button for an annotation | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/user-interface/annotations/hide-the-delete-button/"
md_url: "https://www.nutrient.io/guides/web/user-interface/annotations/hide-the-delete-button.md"
last_updated: "2026-06-08T09:14:14.481Z"
description: "To hide the delete icon from the toolbar in Nutrient, you can use the individual public CSS class selectors for each toolbar element:."
---

# Hide the delete button in the annotation toolbar

To hide the delete icon from the toolbar in Nutrient, you can use the individual public CSS class selectors for each toolbar element:

```css.PSPDFKit-Text-Markup-Annotation-Toolbar-Button-Delete,.PSPDFKit-Rectangle-Annotation-Toolbar-Button-Delete,.PSPDFKit-Ellipse-Annotation-Toolbar-Button-Delete,.PSPDFKit-Polygon-Annotation-Toolbar-Button-Delete,.PSPDFKit-Polyline-Annotation-Toolbar-Button-Delete,.PSPDFKit-Line-Annotation-Toolbar-Button-Delete,.PSPDFKit-Ink-Annotation-Toolbar-Button-Delete,.PSPDFKit-Text-Annotation-Toolbar-Button-Delete,.PSPDFKit-Note-Annotation-Toolbar-Button-Delete,.PSPDFKit-Image-Annotation-Toolbar-Button-Delete,.PSPDFKit-Stamp-Annotation-Toolbar-Button-Delete {
  display: none;
}

```

Or, you can try to match part of the selector:

```css.PSPDFKit-Annotation-Toolbar [class*="-Toolbar-Button-Delete"] {
  display: none;
}

```

You can see the complete list of available public CSS classes for toolbars in our [API reference](https://www.nutrient.io/api/web/css-Toolbar.html).
---

## Related pages

- [Adding contextual tooltips to annotations in viewer](/guides/web/customizing-the-interface/annotation-tooltips.md)
- [Customizing the annotation inspector in our viewer](/guides/web/user-interface/annotations/inspector.md)
- [Mastering annotation presets in your PDF viewer](/guides/web/user-interface/annotations/presets.md)
- [Adding stamp annotations in our JavaScript PDF viewer](/guides/web/user-interface/annotations/stamps.md)
- [Customizing annotation variant buttons in the toolbar](/guides/web/user-interface/annotations/variant-buttons.md)

