How do I delete all entities of a bundle? I am using Paragraphs module and I can't delete paragraph type until I delete the content of the paragraph. I can use admin/modules/uninstall/entity/paragraph, but this will delete the paragraphs of all types.
There are some examples of removing nodes of a certain content type. In that case node is the entity type and article could be bundle (content type). This is no different. paragraph is the entity and [paragraph type] is the bundle.

For instance this post: https://stackoverflow.com/questions/34593060/drupal-8-delete-all-nodes-of-the-same-type

There are a few alternatives listed, but I suppose this should work:

$paragraphs = \Drupal::entityTypeManager()
    -&gt;getStorage('paragraph')
    -&gt;loadByProperties(array('type' =&gt; 'your_paragraph_type')); // System name

foreach ($paragraphs as $paragraph) {
    $paragraph-&gt;delete();
}