Rewrite WG purge

always wanted to do this