I have installed a field collection module in my D7 site. There is a multifield(unlimited) field collection with 3 field collection items. I need to delete the field collection programatically.
$field_collection_delete = $node->field_accommodation['und'][$j]['value'] ; entity_delete_multiple('field_collection_item', array($field_collection_delete));
$j is a for loop increment value(0,1,2...) to remove field collection
but when i run the code the value in the field collection item deleted(deleted from the db table) but the field collection field i added in the content type is still in the database as none value.
I need to delete that too programmatically.