# Does HTTP GET: a binary file occupies size?

**URL:** <https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325>\
**Category:** Questions\
**Tags:** core\
**Created:** [November 30, 2022, 8:13pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325 "2022-11-30T20:13:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![yukyo](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yukyo](https://community.n8n.io/u/yukyo)\
**Post date:** [November 30, 2022, 8:13pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/1 "2022-11-30T20:13:39Z")

</div>

Hi. Simple question, I have a scenario that requests an HTTP to get the binary (image or pdf):

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/2/1275a75494fb13d0a7145e566546e656822b511e.png)

When I have the binary in the following step, I upload it to an S3 bucket or an FTP:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/c/2cd070957626abf432f66b3c6ce069b5011b0f86.png)

I guess that “HTTP” GET: binary occupies MB/GB in the disk?

I have seen an increment in the last week of disk usage, and these are the only two new scenarios:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/2/8219a707309d17e409f42b3869bf3b765ffeac3a.png)

I have made a snapshot just to confirm; normally, my snapshots are 5-6GB. This one was 12GB…

How I can clear binary files from my n8n? I really don’t need to store any binaries because I’m already storing them in S3/FTP.

Thanks.

---

<div class="post-metadata">

**Author:** ![yukyo](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yukyo](https://community.n8n.io/u/yukyo)\
**Post date:** [December 2, 2022, 1:47pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/2 "2022-12-02T13:47:40Z")

</div>

Upp! Does anyone know how to remove the binary files saved to the n8n disk? Is there a docker command to do that? Can it be scheduled automatically?

I’m already on my 50% disk capacity in just a week.

Thanks!

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [December 2, 2022, 1:56pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/3 "2022-12-02T13:56:56Z")

</div>

Hey @yukyo,

If you check the `binaryData` folder in your container is there anything in it? Part of it could be the logging of workflows as well, Have you set up any database pruning options?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [December 2, 2022, 2:07pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/4 "2022-12-02T14:07:11Z")

</div>

And please do not simply delete the issue template rather fill it. It is there for a reason, esp. the “Information on your n8n setup” section. That makes it easier to answer your question without having to ask more questions and so give you a meaningful and helpful answer.

Generally, can you reduce the data by configuring n8n so that it does not save successful executions. Executions and binary data get by default saved in the database (could be SQLite, which would fill up your local disk, or external database, which would fill up that disk) unless you have n8n configured to save binary data to the filesystem instead via `N8N_DEFAULT_BINARY_DATA_MODE=filesystem`.

If you want to save successful executions but just for a limited time and then prune automatically you can find a guide here:

> **[Execution data - n8n Documentation](https://docs.n8n.io/hosting/scaling/execution-data/#enable-data-pruning)**
>
> Documentation for n8n, a workflow automation platform.

---

<div class="post-metadata">

**Author:** ![yukyo](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yukyo](https://community.n8n.io/u/yukyo)\
**Post date:** [December 2, 2022, 3:17pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/5 "2022-12-02T15:17:07Z")

</div>

> [@Jon](#):
>
> If you check the `binaryData` folder in your container is there anything in it? Part of it could be the logging of workflows as well, Have you set up any database pruning options?

Hi @Jon . Where I can find the binaryData folder? I’m using a Digitalocean droplet to host the n8n docker running in a Debian machine.

Thanks.

> [@jan](#):
>
> If you want to save successful executions but just for a limited time and then prune automatically you can find a guide here:

I’m already using a PRUNE automatically every 7 days:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/b/cbe8b741db0f478aca6f8eadb52022715bac5f99.png)

Binary files will get deleted, too when the executions get deleted by the pruning task?

Thanks.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [December 2, 2022, 3:25pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/6 "2022-12-02T15:25:40Z")

</div>

Hey @yukyo,

The folder would be next to the database file in the volume you create, But I don’t think that option is enabled by default so they would stay in memory or that is my understanding anyway.

Have you done a search on the OS to find the largest folders that could show you where to look.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [December 2, 2022, 3:57pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/7 "2022-12-02T15:57:30Z")

</div>

If `filesystem` mode did not get enabled, it is saved it together with the execution in the DB. So it will be deleted at the same time.

If `filesystem` mode is enabled the same should happen. Sadly was there a bug which got fixed in the latest version (`0.205.0`). [Here the GitHub PR](https://github.com/n8n-io/n8n/pull/4713).

---

<div class="post-metadata">

**Author:** ![yukyo](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yukyo](https://community.n8n.io/u/yukyo)\
**Post date:** [December 3, 2022, 1:36am UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/8 "2022-12-03T01:36:23Z")

</div>

> [@Jon](#):
>
> The folder would be next to the database file in the volume you create, But I don’t think that option is enabled by default so they would stay in memory or that is my understanding anyway.
> 
> Have you done a search on the OS to find the largest folders that could show you where to look.

I still can’t figure out why I can’t delete the binary files… I did a manual pruning and journal vacuum:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/6/9/69dc6440c7ba77dfc237cb0589b33ad1b7677a0e.png)

Also, I have lowered the execution from 7 to 3 days, and now my execution went from 60k to 26k:

![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/a/2a08d3b3ea18b6159340318f2201aef8907599c0.png)

But I still have +50% disk used I went from 15% to 50% in one week.

Snapshot images went from 6GB to 20GB:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/4/e4378f1c1ef0a5f2b3989d60d2a6c24208cda44b.png)

Helpp please!

---

<div class="post-metadata">

**Author:** ![yukyo](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yukyo](https://community.n8n.io/u/yukyo)\
**Post date:** [December 3, 2022, 4:17pm UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/9 "2022-12-03T16:17:19Z")

</div>

> [@Jon](#):
>
> If you check the `binaryData` folder in your container is there anything in it? Part of it could be the logging of workflows as well, Have you set up any database pruning options?

There are two folders: “meta” and “persistMeta”

![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/6/3630161e761befebb619d8c7b24c4b01d07916ee.png)

But checking with sudo du -sh it says the folder size is 12KB so it’s not that folder…

These are the top20 biggest folders:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/d/cd7d6b550bfe4ab3d0e9dd21e0a0a02eb2a597b0.png)

Any thoughts?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [December 5, 2022, 9:25am UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/10 "2022-12-05T09:25:17Z")

</div>

Hey @yukyo,

That screenshot tells us what is going on, The size is likely being taken up by the data being stored in the database. If you check your workflow settings you can set them to not log for every run and only log when events have failed. If you do need to log for everything then the server would need to be specced to deal with that.

It would also be worth setting the vacuum option which may help to free up some of the space once the execution data is deleted.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [March 5, 2023, 9:26am UTC](https://community.n8n.io/t/does-http-get-a-binary-file-occupies-size/20325/11 "2023-03-05T09:26:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
