Change purge functionality to pass env, instead of PATH_INFO.