How to remove blank pages in PDF dynamic?

Would like to remove blank pages in my pdf files, how to do that?

can anyone share an example? or video

Hi I would recommend to have a view on this thread on same note

Cheers @Nightowl_music