# Why are the contents of files deleted?

**URL:** <https://discourse.nodered.org/t/why-are-the-contents-of-files-deleted/83767>\
**Category:** General\
**Tags:** docker\
**Created:** [16 December 2023 19:58 UTC](https://discourse.nodered.org/t/why-are-the-contents-of-files-deleted/83767 "2023-12-16T19:58:23Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 December 2023 16:55 UTC](https://discourse.nodered.org/t/why-are-the-contents-of-files-deleted/83767/25 "2023-12-18T16:55:24Z")

</div>

Set the default to `file` so you won't have to name it when you do a save.

Here is something I wrote (quite awhile ago) that you may find informative

> [@A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115):
>
> This is something I wrote up after playing with the context options. I've filed a PR with some of this added to the Node-RED documentation but thought I'd release it here also. I hope people find it useful. Paul A guide to understanding 'Persistent Context' Prior to Node-RED v0.19.0, data could be stored in context as a global, flow or node. This was stored in memory and would be reset with a restart of Node-RED. As of v.0.19.0 you can now store node, flow and global context data in memory O…

---

_[View the full topic](https://discourse.nodered.org/t/why-are-the-contents-of-files-deleted/83767)._
