Skip to content

Instantly share code, notes, and snippets.

@tmsss
Created January 26, 2016 16:04
Show Gist options
  • Select an option

  • Save tmsss/6b569a908262055c6293 to your computer and use it in GitHub Desktop.

Select an option

Save tmsss/6b569a908262055c6293 to your computer and use it in GitHub Desktop.
Delete node revisions from database
DELETE FROM `node_revisions` WHERE node_revisions.vid NOT IN (SELECT node.vid FROM `node` );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment