Error during entup when removing a field added in entity_base_field_info I am removing a field that was added using hook_base_field_info:

/**
 * Implements hook_entity_base_field_info().
 */
function MYMODULE_entity_base_field_info(EntityTypeInterface $entity_type) {
  $fields = array();


  if ($entity_type-&gt;id() === 'node') {
    $field_definitions['some_field'] = \Drupal\Core\Field\BaseFieldDefinition::create('datetime')
      -&gt;setLabel(t('some  field'))
      -&gt;setDescription(t('description'))
      -&gt;setRevisionable(TRUE)
      -&gt;setTranslatable(TRUE)
      -&gt;setSetting('datetime_type', 'date')
      -&gt;setDisplayOptions('view', [
        'label' =&gt; 'inline',
        'type' =&gt; 'datetime_default',
        'weight' =&gt; 1,
        'settings' =&gt; [
          'format_type' =&gt; 'html_date',
          'timezone_override' =&gt; '',
        ],
      ])
      -&gt;setDisplayConfigurable('view', TRUE)
      -&gt;setDisplayOptions('form', array(
        'type' =&gt; 'datetime_default',
        'weight' =&gt; 10,
      ))
      -&gt;setDisplayConfigurable('form', TRUE);

    return $fields;
  }
}


I removed the code and ran drush entup I get the following error repeatedly:

drush entup -y
The following updates are pending:

node entity type : 
Some Field field needs to be uninstalled.

// Do you wish to run all pending updates?: yes.                                                                       

 [error]  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '22906-42845-1-0-de' for key 'PRIMARY': INSERT INTO {field_deleted_revision_01c8f04bcd} (bundle, entity_id, revision_id, langcode, some_field_value, deleted, delta) SELECT base_table.type AS bundle, entity_table.nid AS entity_id, entity_table.vid AS revision_id, entity_table.langcode AS langcode, entity_table.compliance_approval_date AS some_field_value, :deleted AS deleted, :delta AS delta
FROM 
{node_field_revision} entity_table
INNER JOIN {node_field_data} base_table ON entity_table.nid = base_table.nid
WHERE entity_table.some_field IS NOT NULL FOR UPDATE; Array
(
    [:deleted] =&gt; 1
    [:delta] =&gt; 0
)


Any idea why this is caused and how one might go about fixing it?
drush entup is the wrong tool (I hope you have a database backup from before you've executed this command). After uninstalling the module containing the node base field, wait until cron has gradually purged the existing field data, see the change record Base fields with existing data can now be uninstalled.