---
title: "deleteRange commands"
description: "Use the deleteRange command in Tiptap to remove content within a specific range in your document. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/api/commands/selection/delete-range"
---

# deleteRange commands

Use the deleteRange command in Tiptap to remove content within a specific range in your document. Learn more in our docs!

The `deleteRange` command deletes everything in a given range. It requires a `range` attribute of type `Range`.

## Parameters

`range: Range`

## Use the deleteRange command

```js
editor.commands.deleteRange({ from: 0, to: 12 })
```
