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

Unloads the specified model from the viewer.

## Example

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

## Usage

```javascript
const modelId = "model-id";

viewer2d.unloadModel(modelId);
```

## Parameters

### modelId

Id of the model to unload.

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

