SDL Trados Temp file deleting

We have a C# application which creates Trados project for us, using Trados Studio 2017 APIs.

For speed reason, I have changed the Windows` Temp folder to a Virtual RAM Disk. Also this technic has a good effect on speed , it has very low space. I see this morning that the Windows`Temp folder gets full. I try to delete the Temp folder but there is AutoDeleteLocked1.lock in SDLTempFileManager folder and it cannot be deleted.

Usually the Trados' temp files do not occupies space, unless this time which I see this AutoDeleteLocked1.lock.

What this file is for? and is there any setting for Trados to delete its temp files all the time?