Drupal 8: delete all nodes of the same type

后端 未结 9 1918
予麋鹿
予麋鹿 2021-02-19 01:34

I have a need to remove all nodes of the same type in Drupal 8 (there are over 7k of nodes).

It wouldn\'t be a problem for Drupal 7 (DB query + node_del

9条回答
  •  庸人自扰
    2021-02-19 02:29

    you can use the Devel module
    1- go to Admin->configuration->development->Generate content
    ( admin/config/development/generate/content )
    2- select the content type you wish to delete its nodes.
    3- check "delete all content in these content types.." (important)
    4- put "0" in "how many nodes would you like to generate" (important)
    see attached image for instructions.

    attached image

提交回复
热议问题