Skip to main content

undocumented - What does the "AutomaticDelete" option for LibraryFunctionLoad do?



Apparently, LibraryFunctionLoad has an option "AutomaticDelete" with default setting Automatic. The documentation page is silent about how this works. Can I use this to clean up temporary files (as asked in this question)? How does this option work in general?



Answer



Making my comments into an answer,



Setting "AutomaticDelete" -> True will cause the DLL file to be deleted when the library is unloaded.


At the moment the default setting of Automatic means False, except when called internally for a Compile-generated DLL.



Comments