Skip to content

Instantly share code, notes, and snippets.

@tstoeckler
tstoeckler / delete-field-values.php
Last active November 1, 2016 13:37
Drupal 8: Empty all field values of a specific field
<?php
/**
* @file
* This file deletes all field values of a specific field.
*
* It is meant to be run with 'drush php-script'.
*
* It is useful if you want to delete all data from a field,
* for example to change field storage settings of a configurable