Created
August 2, 2016 12:55
-
-
Save init90/60507e593cba719c444d86b8355f038e to your computer and use it in GitHub Desktop.
Drupal 8 delete all entitis for some type
This file contains 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
entity_delete_multiple('tracking_log', \Drupal::entityQuery('tracking_log')->execute()); | |
entity_delete_multiple('tracking_service', \Drupal::entityQuery('tracking_service')->execute()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment