fix purge to have configuration directly in persistence service