---
title: deselectAll
slug: viewer-2d/deselectall
docTags: 
createdAt: 2024-03-06T15:13:49.289Z
---

Removes all objects from the selection in the viewer.

## Example

::codepen{url="https://codepen.io/Catenda/embed/eYweQVR"}

## Usage

```javascript
viewer2d.deselectAll();
```

