# Store and Forward Clear Cache

**URL:** <https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588>\
**Category:** Ignition Early Access\
**Created:** [June 5, 2019, 6:53pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588 "2019-06-05T18:53:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [June 5, 2019, 6:53pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/1 "2019-06-05T18:53:10Z")

</div>

Hi, im currently having trouble with my Historian database. I noticed the store and forward local cache is constantly at 100%, how can i clear this manually? I have tried deleting the database and re-adding but it comes back at 100%.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [June 5, 2019, 7:25pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/2 "2019-06-05T19:25:15Z")

</div>

I would look at the quarantine on the status page and see what records are stuck as the first step. Depending on how many tags you have in your historian(or using other store and forward features) the cache might need to be made larger.

---

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [June 6, 2019, 8:00am UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/3 "2019-06-06T08:00:05Z")

</div>

It’s weird, the quarantine is clear and reading on the forums i tried enable/disabling cache. However it will just freeze on the re-enable stage.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [June 18, 2019, 11:53pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/4 "2019-06-18T23:53:42Z")

</div>

@anon55648468,

When looking at the following page, are you seeing anything out of the ordinary that might look like a rogue query?  
**Status \> Databases**  
Click the **Details** button for the DB in question

Also, are there any errors in your database logs?

The data in the cache is stored on the Gateway in the **data/datacache** directory in a folder named after the database connection you created. This folder doesn’t go away when you delete the DB, and the information contained in it would return if you created a connection of the same name. This is intentional as we don’t want you to lose that data accidently.

If you really need to clear the cache (as well as any of the data that was included in it, i.e. do so at your own risk), you would want to shut Ignition down and rename the DB folder to be something different. On startup a new folder will be created and Store & Forward will start using that folder structure and the cache will be cleared.

If the cache isn’t being cleared though, there is likely a separate cause that you should spend the time to identify. Looking at the logs and queries being run should help identify where an issue might exist.

Thanks,  
Garth

---

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [June 24, 2019, 3:11pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/5 "2019-06-24T15:11:53Z")

</div>

> [@ggross](#):
>
> ose that data accidently.
> 
> If you really need to clear the cache (as well as any of the data that was included in it, i.e. do so at your own risk), yo

the problem was indeed sorted by clearing the datacache through the directory. It has not reoccured since, so i suspect it just errored during the update to v8.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [November 3, 2022, 9:39am UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/6 "2022-11-03T09:39:32Z")

</div>

hi  
I deleted all database connections + real time and historic tag providers but still have a several old queuesof store and forward entries which i would like to clear.

I navigated to Ignition install folder\data\db and stopped ignition and then renamed db folder hoping it will be recreated but i got initial screen allowing me to choose which version of ignition i would like to install.

Can you please confirm if this is what i should do to clear completely store and forward (i dont need this data). Are there any other less extreme ways of clearing that store and forward data?

Regards

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [November 3, 2022, 5:45pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/7 "2022-11-03T17:45:42Z")

</div>

> [@hewking32](#):
>
> I navigated to Ignition install folder\data\db and stopped ignition and then renamed db folder hoping it will be recreated but i got initial screen allowing me to choose which version of ignition i would like to install.

This is not what should have been done. the `\data\db` folder contains the all the configuration for your Gateway and that is why the system is prompting you to recommission. You will want to:

1. Shutdown Ignition
2. Rename the folder back to what it was before
3. Start Ignition to confirm that your Gateway's configuration was restored

The store and forward files are in the `data/datacache` directory. Again I recommend only renaming them/relocating them and not deleting them. Only do this after you have confirmed your Gateway is back to a stable state.

Garth

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [November 3, 2022, 7:18pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/8 "2022-11-03T19:18:42Z")

</div>

thanks for reply - i understand the steps for normal ignition. Can you please confirm which folder to delete on edge gateway as i could not find datacache folder?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 3, 2022, 7:37pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/9 "2022-11-03T19:37:39Z")

</div>

Edge doesn't have database connections, and therefore no store-and-forward caches. You say above that you deleted database connections. Ergo, not Edge.

Maybe you should start a new topic that has exactly your situation.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [November 3, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-clear-cache/25588/10 "2022-11-03T19:57:53Z")

</div>

my problem is already solved and was related to full ignition. I thought that edge must have store and forward because it can keep up to a week of data but as you confirmed that was wrong.
