---
title: deselect
slug: viewer-2d/deselect
docTags: 
createdAt: 2024-03-06T15:09:02.797Z
---

Removes specified objects from the selection in the viewer.

## Example

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

## Usage

```javascript
const objectIds = ["object-1", "object-2"];

viewer2d.deselect(objectIds);
```

## Parameters

### objectIds

List of object ids to remove from the selection.

| **Type**       | **Required** |
| -------------- | ------------ |
| Array\[String] | Yes          |

