---
title: destroy()
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/map/destroy
---

# destroy()

Removes the map’s element from the DOM and releases internal references to the map to free up memory.

## Declaration

```data
destroy(): void;
```

## Return Value

Return Value This method returns no value.
