field_delete_field()

field_delete_field($field_name)

Walt Haas's picture

Mark all instances of $field_name deleted in the field_config_instance table and mark the field type of this field deleted in the field_config table. In order for an instance to be deleted, the module which defines the entity in the instance bundle must be active (enabled). If the entity module is disabled, this function will silently fail.

Subscribe to RSS - field_delete_field()