How to clean binary data?

Describe the problem/error/question

How do I force clean binary data after the workflow successful run? cause it’s taking a lot of space storage since my workflow involves uploading large video files.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:**1.81.4
  • **Database (default: SQLite):**default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**npm
  • **Operating system:**Windows Server 2022

By default, n8n keeps binary data only for the duration of a workflow’s execution (in memory).

Once the execution finishes, that binary data is normally cleared—unless you’ve configured n8n to save execution data.

In that case, if you’re using filesystem mode (by setting N8N_DEFAULT_BINARY_DATA_MODE=filesystem), the binary files are written to disk and then later pruned based on your execution data retention settings (by default, finished executions, along with their binary data, are kept for about 14 days, but you can adjust this via environment variables).

.

:point_right: If my reply answers your question please remember to mark it as the solution

1 Like

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