def clean_cells(nb_node):
    """Delete any outputs and resets cell count."""
    for cell in nb_node['cells']:
        if 'code' == cell['cell_type']:
            if 'outputs' in cell:
                cell['outputs'] = []
            if 'execution_count' in cell:
                cell['execution_count'] = None

    return nb_node