Does AWS clear the /tmp
directory automatically?
Is there a flush()
sort of function? If not, how can I remove/delete all the files from the /tmp
folder?
I have an AWS Lambda function where I download a file to my /tmp
folder. I unzip the zipped file and gzip all individual files. All this happens within the /tmp
directory and before I upload the gzipped files to S3 again.
Afterwards, I no longer need the files in my /tmp
folder & would like to clear the directory.
If I open /tmp
from my local macOS machine, I don't see any related files at all so I am not sure how to check if they are successfully deleted or not.