Core Flow Concepts
Data Retention Policy
What happens to your data on Flow
Flow stores every file a pipeline produces. Most of those files are intermediate files that a pipeline run needed in order to reach its final results, and they are the bulk of what fills our storage. To make the best use of our storage capacity, we are introducing measures to delete some of these bulky intermediates periodically.
This page explains what we delete, what we never delete, and what the labels on a file mean.
Only files produced by an execution are ever at risk
Nothing you upload to Flow is at risk of deletion. That includes:
- sample files you uploaded, like raw FASTQs
- sample metadata
- genome references, such as a genome's FASTA and annotation
Only files an execution produced are ever considered, and even then only some of them.
Curated data vs. intermediate data
Every pipeline declares what its final results are. On an execution page those files appear under Curated Data: the alignments, counts, plots and reports the pipeline exists to produce.
Intermediate data is everything else a run writes along the way, such as trimmed reads, sorted-but-not-final BAMs, and per-step working files.
Curated data is never deleted. Only intermediate data is.
What we keep anyway
An intermediate file is kept, however large or old it is, if any of the following is true.
- It is in use. Another execution used it as an input. Deleting it would break the record of how that other run reached its results.
- A retry needs it. The run was retried, and the retry is using it.
- It is sample data. The file belongs to a sample's own files, for example demultiplexed FASTQs associated with a sample.
- It is a genome reference.
- An admin has written a keep rule for it. Some intermediates matter to particular kinds of analysis, so we can mark those as kept across a whole pipeline and they survive everywhere.
A file is at risk when it is intermediate and none of the above applies.
We also never touch a run that is still going. A pipeline consumes its own intermediate files as it works, so a file only becomes a candidate once its execution has finished.
The whole policy in one picture:
| Produced by an execution? | Curated data? | Admin keep rule? | What happens |
|---|---|---|---|
| No | Any | Any | Never deleted |
| Yes | Yes | Any | Never deleted |
| Yes | No | Yes | Kept |
| Yes | No | No | May be deleted at a future date |
Anything deleted can be reproduced in the future
Flow keeps the whole record of a pipeline run: the pipeline, its exact version, the parameters, the inputs, and every file it produced, including the ones whose contents we have deleted from storage. A deleted file will keep its page, its name, its size and its place in the execution.
A deleted intermediate is therefore not lost forever. If you find that you need a file in the future, you can re-run the execution that originally produced it and Flow will produce it again.
What you cannot do is download or preview a file once its contents are gone. If you know in advance that you want your own copy of an intermediate, download it while it is still there to save you time in the future.
The three labels you may see on a file
May be deleted at a future date
No rules are currently keeping this file, so it may be scheduled for deletion later. It is still there and still downloadable, and nothing happens to it automatically.
Scheduled for deletion
This file has been selected for an upcoming deletion and could be removed at any time. If you want your own copy, please download it now.
Deleted
The contents have been removed from storage. The file's page, metadata and history remain, and re-running its execution will produce it again.
When deletions happen
Currently there is no timer and no automatic sweep. Deletions are run by hand by an administrator. "May be deleted at a future date" therefore means eligible, not imminent. Treat it as a heads-up rather than a countdown.
If a file matters to you
Tell us. If an intermediate is something you or your field rely on, we would rather add a keep rule for it across the whole pipeline than have anyone lose work. Email us at support@flow.bio and we will look at it.