MATLAB: Is it possible to delete the folder structure of standalone application created since CTF file

ctf fileMATLAB Compiler

I am using a standalone application since compilation (R2008b) of Matlab source. This application is run in other computer with the MCR installed. When it is running, the folder structure from associated CTF file is created. This structure contains info about the deployment and code source in encrypted way but is ti possible this info automatically be deleted?

Best Answer

Actually, this structure is not automatically deleted. You can specify a temp directory where this would be extracted by specifying an environment variable: MCR_CACHE_ROOT
The location specified by this environment variable would be the location where the CTF would be extracted. You could run a a clean up script that could delete this folder every night.