# How can I tell Dynare not to create files of figures?

**URL:** https://forum.dynare.org/t/how-can-i-tell-dynare-not-to-create-files-of-figures/2153
**Category:** Dynare help (legacy posts)
**Created:** [19 September 2011 09:07 UTC](https://forum.dynare.org/t/how-can-i-tell-dynare-not-to-create-files-of-figures/2153 "2011-09-19T09:07:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kyri82](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/ee7513/32.png) [@kyri82](https://forum.dynare.org/u/kyri82)
#### Post date: [19 September 2011 09:07 UTC](https://forum.dynare.org/t/how-can-i-tell-dynare-not-to-create-files-of-figures/2153/1 "2011-09-19T09:07:17Z")

</div>

Hello,

Dynare always saves figures of Impulse Response Functions in .eps, .pdf and matlab format. A problem with that is that my hard disk gets filled up with all these files every time I run a model. Is there a way, possibly as an option, to tell Dynare NOT to save figures of the impulse responses? Thanks!

Kyriacos

---

<div class="post-metadata">

### Author: ![sebastien](https://forum.dynare.org/user_avatar/forum.dynare.org/sebastien/32/19973_2.png) [@sebastien](https://forum.dynare.org/u/sebastien)
#### Post date: [28 September 2011 12:55 UTC](https://forum.dynare.org/t/how-can-i-tell-dynare-not-to-create-files-of-figures/2153/2 "2011-09-28T12:55:03Z")

</div>

Have you tried the “nograph” option? (see the reference manual) At least with “stoch\_simul”, it will prevent Dynare from saving IRF graphs. In the case of estimation, it seems that it will prevent Dynare from displaying graphs but not from saving files. This is something we should improve.

Best,

---

<div class="post-metadata">

### Author: ![mfer](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mfer](https://forum.dynare.org/u/mfer)
#### Post date: [6 November 2011 14:59 UTC](https://forum.dynare.org/t/how-can-i-tell-dynare-not-to-create-files-of-figures/2153/3 "2011-11-06T14:59:16Z")

</div>

One alternative could be:  
Create a matlab function clean\_dynare\_output.m that contains for example:

`delete *_IRF_*
delete *_dynamic.m
delete *_static.m
delete *.jnl
delete *.log
delete *.eps
delete *.pdf
`

(or specify whatever you think you don’t need)

and call `clean_dynare_output;` at the end of the \*.mod file.

PS: Be careful in using it: if you have for example other .pdf files, it will erase also those. You might want to modify the ‘delete \*.pdf’ command appropriately so that this does not happen.
