Delete files after running dynare

Hello everyone,
After running a .mod files, a lot of file .m will appear in my folder. It makes me really hard to see the original .mod file if I want to run it again.
So, I would like to ask if there is any command i can use to delete all the file showing up after I run a .mod file, only keep the original one that I run it, for next time running it.


Hi, we do not have such a function currently. If you do not define a steady state file or external functions you can safely delete all the *.m, *.mat, *.eps, *.pdf, … with the matlab delete function. Something like:

>> delete *.m *.eps

For directories, you can use the rmdir function.


Thanks a lot for your help!