How to disable space on top and bottom of page?

Scroll down the editing page, to Page options section and switch to Page layout tab. There you can disable top and/or bottom paddings with Disable page top padding and Disable page bottom padding options.