Added purge for rest