Skip to content

Instantly share code, notes, and snippets.

@init90
Created August 2, 2016 12:55
Show Gist options
  • Save init90/60507e593cba719c444d86b8355f038e to your computer and use it in GitHub Desktop.
Save init90/60507e593cba719c444d86b8355f038e to your computer and use it in GitHub Desktop.
Drupal 8 delete all entitis for some type
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