Programmatically delete field collection items Is there any way to delete field collection items programmatically in Drupal 8?

I have created a field collection item and attached it to the user entity in the following method.

$user_id = \Drupal::currentUser()-&gt;getAccount()-&gt;id();
$user = User::load($user_id);

$fc = FieldCollectionItem::create(array(
  "field_name" =&gt; "field_hobbies",
));

$fc-&gt;set('field_name', 'Watch TV');
$fc-&gt;setHostEntity($user);


It works fine and the field collection item got created successfully. Now I want to delete this field collection item. That means, I want to delete the hobby from the user. Is there any way for doing this?
Copied from (and then tested):

https://www.drupal.org/node/2757827#comment-11398243

$user = User::load($user_id);
$storage = \Drupal::entityTypeManager()-&gt;getStorage('field_collection_item');
$fc_items = [];

foreach ($user-&gt;get('field_hobbies') as $item) {
    $fc_items[] = $item-&gt;value;
}

if (!empty($fc_items)) {
    $items = $storage-&gt;loadMultiple($fc_items);
    $storage-&gt;delete(items);
    $user-&gt;set('field_hobbies', array());
}

$user-&gt;save();