hpc-python icon indicating copy to clipboard operation
hpc-python copied to clipboard

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

Open andrewsanchez opened this issue 5 years ago • 1 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

andrewsanchez avatar Apr 05 '19 18:04 andrewsanchez

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.

tkphd avatar Apr 05 '19 21:04 tkphd