---
title: "unsetAllMarks command"
description: "Use the unsetAllMarks command in Tiptap to remove all marks from the current selection. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/api/commands/nodes-and-marks/unset-all-marks"
---

# unsetAllMarks command

Use the unsetAllMarks command in Tiptap to remove all marks from the current selection. Learn more in our docs!

`unsetAllMarks` will remove all marks from the current selection. By default, it respects the [`clearable`](https://tiptap.dev/docs/editor/extensions/custom-extensions/create-new/mark.md#clearable) option on each mark — marks with `clearable: false` will not be removed.

## Parameters

`options?: Record<string, any>`

- `ignoreClearable?: boolean` - If `true`, removes all marks regardless of their `clearable` setting. Defaults to `false`

## Using the unsetAllMarks command

```js
// removes all marks that have clearable: true (default behavior)
editor.commands.unsetAllMarks()

// removes all marks, ignoring the clearable option
editor.commands.unsetAllMarks({ ignoreClearable: true })
```
