---
title: "clearContent command"
description: "Delete all content in the editor with the clearContent command in your Tiptap Editor. Learn more in the docs."
canonical_url: "https://tiptap.dev/docs/editor/api/commands/content/clear-content"
---

# clearContent command

Delete all content in the editor with the clearContent command in your Tiptap Editor. Learn more in the docs.

The `clearContent` command deletes the current document. The editor will maintain at least one empty paragraph due to schema requirements.

See also: [setContent](https://tiptap.dev/docs/editor/api/commands/content/set-content.md), [insertContent](https://tiptap.dev/docs/editor/api/commands/content/insert-content.md)

## Parameters

`emitUpdate?: boolean (true)`
Whether to emit an update event. Defaults to `true` (Note: This changed from `false` in v2).

## Examples

```js
// Clear content (emits update event by default)
editor.commands.clearContent()

// Clear content without emitting update
editor.commands.clearContent(false)
```
