I have a content type in my Drupal 8 instance and having more than 2 millions (20 lakhs) node and want to delete those node, tried many things but nothing helps, either HTTP 500 error occur or Website encounter an error message came. Need help please suggest some workable solution. Methods I have tried so far are :-
- Using module - Delete All
- Devel generate and delete method Article.
$result = \Drupal::entityQuery('node') ->condition('type', 'my_content_type_name') ->execute(); entity_delete_multiple('node', $result);