Sometimes users may wish to remove some or all of these generated directories before running them. This includes both the experiment directory itself and the associated archive and work directories linked to each experiment.
To support this workflow, a purge_experiments() method is provided to safely clean up generated experiments, which is equivalent to payu sweep --hard or payu sweep with additional safety checks (such as dry_run) to prevent accidental deletion.
Sometimes users may wish to remove some or all of these generated directories before running them. This includes both the experiment directory itself and the associated
archiveandworkdirectories linked to each experiment.To support this workflow, a
purge_experiments()method is provided to safely clean up generated experiments, which is equivalent topayu sweep --hardorpayu sweepwith additional safety checks (such asdry_run) to prevent accidental deletion.