hpc-carpentry / hpc-python

HPC Python lesson materials

Home Page:https://hpc-carpentry.github.io/hpc-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use --delete-all-output instead of creating a clean rule

andrewsanchez opened this issue · comments

To remove all files created by snakemake as output files to start from scratch, you can use

$ snakemake some_target --delete-all-output

https://snakemake.readthedocs.io/en/stable/project_info/faq.html#how-do-i-remove-all-files-created-by-snakemake-i-e-like-make-clean

Cool! It would definitely be useful to introduce this as the Snakemake alternative to rm -f, which is an intrinsically unsafe command to show beginners.