Updated 'purge' method.