def wipe_deploy_internal_info(node):
    """Remove temporary deployment fields from driver_internal_info."""
    info = node.driver_internal_info
    info.pop('agent_secret_token', None)
    info.pop('agent_secret_token_pregenerated', None)
    info['deploy_steps'] = None
    info.pop('agent_cached_deploy_steps', None)
    info.pop('deploy_step_index', None)
    info.pop('deployment_reboot', None)
    info.pop('deployment_polling', None)
    info.pop('skip_current_deploy_step', None)
    info.pop('steps_validated', None)
    info.pop('agent_url', None)
    node.driver_internal_info = info
