ExpiredFilesCleanupService doesn't remove any files?
See original GitHub issueHi, I’ve coped ExpiredFilesCleanupService into my project from the .NET 6 example and I’ve set expiration to 10 minutes in the “DefaultTusConfiguation” using the pattern from the same example:
Expiration = new AbsoluteExpiration(TimeSpan.FromMinutes(10)),
But although the job runs correctly, no files actually get deleted. How do I find out why it thinks there are no files to be deleted?
The log files just show this line: .ExpiredFilesCleanupService|Removed 0 expired files. Scheduled to run again in 600000 ms
The folder it saves to has several months’ worth of files in it:
Thanks!
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Disk cleanup in Windows 10 is not removing selected files
Disk Cleanup deletes temporary files and system files, empty the recycle bin and remove a variety of other items that you might no...
Read more >Disk Cleanup doesn't clear Windows Update Cleanup
Hey folks, try as I might, I cannot get Disk Cleanup (via clean up system files) to clean the files in Windows Update...
Read more >Disk Cleanup not working properly or does not remove files in ...
Disk Cleanup is an inbuilt utility tool in Windows 11/10 that enables you to erase useless and junk files from your PC. It...
Read more >Force Delete a File That Cannot Be Deleted Windows 10
Force Delete a File That Cannot Be Deleted Windows 10 ▻▻▻SUBSCRIBE for more: https://www.youtube.com/user/Britec09?sub_confirmation=1 How ...
Read more >How To Delete File Or Folder That Won't Delete [SOLVED]
Delete file that cannot be deleted. UPDATED Download Link - http://www.majorgeeks.com/ files /details/unlocker.html Original Link In Video ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahh it seems I’ve misunderstood then - I was assuming that this folder was for temp files. I store the file as an Azure Blob after upload so what do I need to do to ensure the folder doesn’t get infinitely big? Delete them with my own process after saving to Azure?
That’s understandable. 😃 See this wiki page on how to delete files: https://github.com/tusdotnet/tusdotnet/wiki/Deleting-processed-files-when-upload-is-complete