Hello,
Please check the included sample DocxPath/removeWordContent/sample_9.php . It removes the second row but you just need to replace the position by last value to remove the last row.
DOCXPath can word with templates and DOCX created from scratch.
Regards.