How to remove _ME folders saved in Users\user​\AppData\L​ocal\Temp folder

5 次查看(过去 30 天)
Hi,
I've noticed that when runing a MATLAB compiled code or MATLAB script there are folders created ans saved in Users\user\AppData\Local\Temp folder, mostly with _ME prefix.
The _ME folders keep piling up in the Temp folder after every process, and are not deleted after the process ends.
How can I make sure that all the un-necessery files are deleted once they are not relevant anymore?
thanks!

回答(1 个)

Ronit
Ronit 2024-5-24
Hello,
The '_ME' folders in the 'Users\user\AppData\Local\Temp' directory are typically generated by MATLAB compiled applications. Ideally, these temporary folders should be cleaned up when the application exits, but in some cases, they might not be properly removed.
To ensure these folders are deleted once they are no longer needed, you can take the following approaches:
  1. Manual Cleanup- You can manually delete these folders by navigating to the 'Users\user\AppData\Local\Temp' directory and removing the folders with the '_ME' prefix. This is straightforward but requires manual intervention.
  2. Automated Cleanup Script- You can write a script to automatically delete these folders. “rmdir” function can be used for this operation. Before implementing any automatic deletion, ensure that your script correctly identifies only the folders you intend to delete to avoid accidental loss of important data.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by