Backrest "Plan deleted from config, but not from restic repo."

Hello, this is my first time posting/interacting here. I’d like to first off say that I am really enjoying using restic and backrest, it’s a fantastic backup software, very powerful. I also appreciate that they are both open source, as all mission critical software should be!

Apologies if this is not the right forum to ask, since this is probably more of a backrest question than it is a restic question, however I think it’s still relevant enough to restic to ask on the forum. I asked this question on the backrest GitHub repo discussions tab, but I don’t think many people check the discussions tab, so I’m not sure if I’ll receive an answer there.

I’m still learning a lot about restic and backrest, so forgive me if what I am asking should be obvious.

In backrest, after I delete a plan, the following warning is displayed:

“Plan deleted from config, but not from restic repo. Snapshots will remain in storage and operations will be tracked until manually deleted. Reusing a deleted plan ID is not recommended if backups have already been performed.”

Can someone clarify what this means? How can I delete the snapshots and any related data from the repo after I delete the plan? Will running a prune operation on the repo fix this?

Is the plan name in backrest different from the plan ID? What happens if I make a new plan using the same name after deleting the old one? Is it safe to be able to reuse a plan name after deleting an old plan with the same name? Do I have to remove all traces and snapshots of the old plan before I can use the same plan name?

Obviously, if I delete a plan, I no longer want the data and snapshots related to it taking up space. I want to actually delete all traces of it in the repo so I don’t waste storage. How can I achieve this when deleting the plan doesn’t actually delete everything related to it?

As far as I understand, it is saying that the snapshots are not deleted and will remain in the repo even after I run a prune? I have to somehow manually delete the snapshots. What commands would I need to run using the restic command line?

Any clarification is appreciated.

prune does not delete any snapshots. It only reclaims space from already deleted snapshots.

It is two step process:

  1. restic forget to forget (mark as deleted) snapshots
  2. restic prune reclaim free space by physically deleting data which is not needed any more