Fixes #4382, purge outdated archives after current archive is finalized.