Last active
August 31, 2021 09:43
-
-
Save d0t15t/18f8ac41b1cb3387f1cd72784a1e72c1 to your computer and use it in GitHub Desktop.
Drupal delete entities of type with drush
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
drush eval '$entity_type = "shortcut"; $storage_handler = \Drupal::entityTypeManager()->getStorage($entity_type); $storage_handler->delete($storage_handler->loadMultiple(\Drupal::entityQuery($entity_type)->execute()));' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment