field_delete_instance($instance, $field_cleanup)

Walt Haas's picture

Updated: 

16/02/2016 - 16:37

Mark instance $instance for deletion. In order for the instance to be marked, the module which defines the entity in the instance bundle must be active (enabled). If the entity defining module is inactive, deletion will silently fail. Actual deletion will be done during a field_purge_batch() operation started by cron.

Description on api.drupal.org

Called by: 

field_attach_delete_bundle(), field_ui_field_delete_form_submit()

Filename: 

modules/field/field.crud.inc

Drupal 7 tags: