Quickly Deleting Duplicate Blank Lines

I found that I can quickly trim them down by using delete-duplicate-lines
and making sure the identical lines must be adjacent argument is set by passing in a C-u C-u prefix.
So the process is:
- open the org file
mark-whole-buffer
- C-u C-u
delete-duplicate-lines
and that’s it!, the key here is the prefix argument otherwise all the blank lines will be deleted which is not what I want.
Of course this method would delete all duplicate adjacent lines and not just the blank ones so I guess you would generally need to be a little careful, but I know I don’t have any of these and if I am not too sure then I can just inspect a git diff.