---
title: removeImage
slug: viewer-2d/methods/removeImage
docTags: 
createdAt: 2024-02-21T14:33:53.989Z
---

Removes the specified image.

## Example

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

## Usage

```javascript
const imageId = "image-1";

viewer2d.removeImage(imageId);
```

## Parameters

### imageId

Id of the image to remove.

| **Type** | **Required** |
| -------- | ------------ |
| String   | Yes          |

