---
title: "releaseCachedMemory"
sidebar_label: "releaseCachedMemory"
description: "Kotlin binding reference: releaseCachedMemory."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Device](index.md)/[releaseCachedMemory](releaseCachedMemory.md)

# releaseCachedMemory

[common]\
fun [releaseCachedMemory](releaseCachedMemory.md)()

Return the runtime pool's idle memory for this device to the driver or the OS. Memory still in use is never touched. A closed model's bytes stay in the pool until this call or memory pressure; the Modelverse binding calls it at a model's close, and a program that closes a model of its own and loads another calls it in between.