/**
 * Implements hook_field_purge_field().
 */
function {{ machine_name }}_field_purge_field(\Drupal\field\Entity\FieldConfig $field) {
  \Drupal::database()->delete('my_module_field_info')
    ->condition('id', $field->id())
    ->execute();
}
