How guarantee the file will be deleted after automatically some time? [closed]
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 2 years ago . I have to store an image for a few minutes after user upload it until user confirm and i store in database So i'm wondering of creating a temporary file and use it to display preview. But I have to be sure that the file will be deleted after some time if user not interact anymore I found this article about temporary files and how delete them automatically https:/