Minimize Edge func memory techniques

I have an edge function that is working with images. It downloads the image from Google drive and stores it in a variable. It then saves the image to Storage and updates a table with metadata. When the function is done running, I'd like to make sure no unneeded memory is being held. Is it necessary to unset variables or does garbage collection actually recuperate unneeded memory?
Was this page helpful?