C-sharp dynamically deletes a page in word

object Unit = (int) Word.WdUnits.wdCharacter;
object Count = 1;
int aa = wordDoc.Range (ref objStart, ref objEnd) .Delete (ref Unit, ref Count);
I use the above code to delete a page in word. There is no problem in deleting the middle page, but it is the last page. After deletion, the last page becomes a blank page

.
Mar.03,2021

how to get it done? Thank you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8b8c5-46e2d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8b8c5-46e2d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?