how to delete page from docx file code example
Example: HOW to deletate pages in microsoft word 2016
Delete a page in Word
Click or tap anywhere in the page you want to delete, press Ctrl+G.
In the Enter page number box, type \page.
Press Enter on your keyboard, and then select Close.
Verify that a page of content is selected, and then press Delete on your keyboard.