Can I remove MATLAB DMR files from the temp directory?

40 views (last 30 days)
I have been using MATLAB & Simulink for a few months, and my C drive now contains many MATLAB temporary files with the extension DMR. Can I delete these files?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Apr 2025
Edited: MathWorks Support Team on 5 Apr 2025
Yes, any DMR files in the temporary directory can be safely deleted while MATLAB is closed.
DMR files, or "Data Model Repository" files, are typically created by the Simulation Data Inspector (SDI) in MATLAB and Simulink. In newer MATLAB versions, these files are automatically deleted when MATLAB closes. However, if MATLAB crashes, DMR files may remain in the temporary directory.
To safely delete the DMR files:
  1. Close all open instances of MATLAB.
  2.  Locate the Temporary Directory:
  • On Windows, open Windows Explorer and type %temp% to access the temp folder (usually C:\Users\username\AppData\Local\Temp).
  • Alternatively, use the MATLAB command tempdir to open the temp folder.
  1. Search for ".DMR" files and delete them.
For more details on DMR files and management, refer to: How to manage Simulink's generation of DMR files in the temp directory.

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!