diff --git a/norg/restic/restic.nim b/norg/restic/restic.nim index 22e358d..7f6fba0 100644 --- a/norg/restic/restic.nim +++ b/norg/restic/restic.nim @@ -34,5 +34,8 @@ proc execute*(nc: NorgConfig, repo: Repository) = echo "Pruning repo: ", repo.label discard pruneRepo(nc, repo) run_actions(norg_config.actions.after_prune) + of DELETE: + echo "Forgetting snapshot: ", nc.args.archive + discard forgetSnapshot(nc, repo) else: discard