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

7 views (last 30 days)
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!

Answers (1)

Ronit
Ronit on 24 May 2024
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!

Categories

Find more on Search Path in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!