Search code examples
c#.netwindowsiotemporary-files

Are files in the temporary folder automatically deleted?


If I create some file using Path.GetTempPath() - does it automatically get deleted at some stage, or is it up to me to delete it?


Solution

  • No, you will need to manually delete the file. Path.GetTempPath() just gives you the folder path to the temp folder.