Deleting all work directories, if they were not necesarry for the most recent pipeline run #4308
-
Hi there, Wondering, is there a way to delete all the specific The rationale is, I develop Nextflow pipelines by running them a bunch of times, while editing the script. This means that lineages of previously The simplest way to clean this up is just to delete the whole I haven't seen anything in the Nextflow documentation about this (i.e. Thoughts? All the best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As I understand it, you want to do something like:
I don't think it would make sense for Nextflow to do this automatically, because it is common for a work directory to contain tasks from many different runs. But, I think you could do this yourself with the
|
Beta Was this translation helpful? Give feedback.
As I understand it, you want to do something like:
I don't think it would make sense for Nextflow to do this automatically, because it is common for a work directory to contain tasks from many different runs. But, I think you could do this yourself with the
nextflow log
command and some Bash.nextflow log
prints the list of all previous runs.nextflow log last
by default prints the task directories of the most recent run. Using this command, you could then delete all task directories that aren't in that list. Then put all of that in a w…