Hi @Marco Dell'Oca ,
Welcome to Microsoft Q&A!
It’s the Garbage Collector process in the background which removed the files from the OS when the records if deleted from the table. Please refer to this blog: FILESTREAM garbage collection. Here are some suggestions:
- If there is not much of activity on a regular basis, then you can run manual checkpoint in the database.
- Regular transaction log backups are needed, in case of FULL and BULK_LOGGED recovery model.
- Make sure there is not a long running transaction in the database.
If both of the above are taken care and still free space is running lower than we can use sp_filestream_force_garbage_collection to force the garbage clean up manually.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.