---
title: unloadModel
slug: viewer-3d/methods/unloadModel
docTags: 
createdAt: 2024-03-01T14:17:48.685Z
---

Unloads the specified model from the viewer.

## Example

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

## Usage

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

viewer3d.unloadModel(modelId);
```

## Parameters

### modelId

Id of the model to unload from the viewer.

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

