Use --delete-all-output instead of creating a clean rule
andrewsanchez opened this issue · comments
Andrew Sanchez commented
To remove all files created by snakemake as output files to start from scratch, you can use
$ snakemake some_target --delete-all-output
Trevor Keller commented
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.