Rewrite purge