I am having a very large website which have around 400000 nodes of story content type. And these nodes have around 2000000 revisions. How can I delete all the revisions except the current revision so i can reduce the size of my database.

I have tried node node revison delete module with no success. Page is getting time out.

1 Answer 1


The time out page is happening cause the modules is not using Drupal batch operation.

Did you try to use drush command that comes with the same module? you need to install Drush Help module to do so. If it didn't work, please post it here so I can provide you with a batch code.

  • Yes, I have used with crush command but there is no response of drush command with asked question scenario. Drush was working on my dev setup which have only 30000 revisions. Nov 29, 2019 at 3:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.