For my Lambda function that processes images using ImageMagick (Lambda Layer), I download the input image from S3 to the /tmp directory of my function, process it and upload the output image back to S3 bucket.
In the end, I make sure that I delete the input image downloaded in the /tmp directory. But what I am observing is, it takes time to do that and that time is in seconds.
So, I just wanted to know if I can skip the deleting part of the image. Will /tmp directory be automatically cleaned eventually for me? Do I have to worry about running out of space in the /tmp directory?