Refine the `.tx/purge` script so it calculates the overall completion