---
title: "clearPrewarmedResources | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function clearPrewarmedResources

-   clearPrewarmedResources(): void[](#clearprewarmedresources)
    
    Clears up resources that have previously been created by `prewarm()`. Note that this is typically not necessary. You should only call this function if you expect the user of your app to not return to a Map view at any point in your application.
    
    #### Returns void
    
    #### Example[](#example)
    
    ```typescript
    clearPrewarmedResources()
    ```
