calling purge()