# removeBlocks (@salmonui/rich-text)

> The removeBlocks function of @salmonui/rich-text: Removes the blocks with these ids (with their children).

Canonical: https://salmonui.dev/docs/reference/rich-text/removeBlocks

```ts
import { removeBlocks } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: function

```ts
function removeBlocks(blocks: readonly Block[], ids: readonly string[]): Block[];
```

Removes the blocks with these ids (with their children).
