[SOLVED] Ardour doesn't want to clear junk

Hello
A while ago I’ve noticed a small problem with Ardour ver. 5.12
I can’t delete junk files - Ardour just hangs once it reaches last junk file and that’s it.
What should I do?

Debian 9, 64bit.
16gb RAM, i7-4770

UPDATE: I guess, I kinda solved this problem…by opening each project’s snapshot and cleaning junk there first. Then I could clean junk in actual snapshot I’m working with.

How do you go about the process? The recommended (necessary?) procedure is as follows, I think:

  1. Go to Editor List > Regions tab, right-click, then choose “Remove unused”.
  2. Go to Session menu > Clean-up > Clean-up Unused Sources.
  3. Restart Ardour and re-open the session you want to clean-up.
  4. Go to Session menu > Clean-up > Flush Wastebasket.

Well, unfortunately, removing unused regions before cleaning up unused sources as suggested by lordbullingdon wasn’t helpful. It’s still hangin after cleaning all the unused files. It looks like Ardour is “thinking too much” while doing this and I don’t know why this is happening.

Ardour takes all session-snapshots of a session into account to check if any of those uses a file.

Are there perhaps any snapshots in the session-folder?

Well yeah, there is one snapshot.

UPDATE: I guess, I kinda solved this problem…by opening each project’s snapshot and cleaning junk there first. Then I could clean junk in actual snapshot I’m working with.