Using Entity API, I know how to get a value or to set a value :
$nid = $entity->id();
$node = \Drupal::entityTypeManager()->getStorage('node')->load($nid);
...
$nom = strtoupper($node->get('field_nom')->value);
$node->set('field_nom', $nom);
$node->save();
But is there a possibility to delete a value of this field?
I tried to directly delete the value in the database
$query =\Drupal::database()->delete('node__field_nom');
$query->condition('field_nom', $nom);
$query->execute();
But since the value is cached, the node have to reload twice to see the result on the screen (an empty field)