Skip to main content

UITCODE - Share to be shared

Site Builder
Theme Development
Module Development
Delete multiple nodes in Drupal

Delete multiple nodes in Drupal

$content_type = 'content_type_name';
$nids = \Drupal::entityQuery('node')
  ->condition('type', $content_type)
  ->execute();

Mr. Hoang ThienLess than 1 minuteDrupalDrupal 8Drupal 9Drupal moduleModule DevelopmentDrupalCode