> For the complete documentation index, see [llms.txt](https://matthias.gitbook.io/matthiasdocu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matthias.gitbook.io/matthiasdocu/miscellaneous/image-memory-management.md).

# Image memory management

This function should be used conditionally, as it takes up a lot of resources.

If you have loaded multiple images, and want to free up memory, you can use this function to "forget" buffered images.

We do not have to provide any arguments to this function.

```lua
--Help! I need more memory!!!
forget_all_images()
```
