Skip to content

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

Open
@andrewsanchez

Description

@andrewsanchez
Member

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

Activity

added a commit that references this issue on Apr 5, 2019
tkphd

tkphd commented on Apr 5, 2019

@tkphd
Member

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.

added a commit that references this issue on May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tkphd@andrewsanchez

        Issue actions

          Use --delete-all-output instead of creating a clean rule · Issue #10 · hpc-carpentry/hpc-python