The following line of codes will let you get rid of unused post revisions in WordPress.

Snippet Source/Credit: WPRecipes.com