purge update dir before update